diff --git a/src/SslCertificate.php b/src/SslCertificate.php index 588e97a..4ac6a50 100644 --- a/src/SslCertificate.php +++ b/src/SslCertificate.php @@ -50,12 +50,10 @@ public function getDomain(): string return ''; } - /* Common Name is a string */ if (is_string($this->rawCertificateFields['subject']['CN'])) { return $this->rawCertificateFields['subject']['CN']; } - /* Common name is an array consisting of multiple domains, take the first one */ if (is_array($this->rawCertificateFields['subject']['CN'])) { return $this->rawCertificateFields['subject']['CN'][0]; }