diff --git a/src/Helpers/CertificateHelper.php b/src/Helpers/CertificateHelper.php index ec29d4d..b483fdd 100755 --- a/src/Helpers/CertificateHelper.php +++ b/src/Helpers/CertificateHelper.php @@ -84,7 +84,7 @@ class CertificateHelper $commonName = null; if (preg_match('/CN="?(.+?)"?(?:,|$)/', $subjectName, $subjectMatch)) { - $commonName = preg_replace('/"{2}/g', '"', $subjectMatch[1]); + $commonName = preg_replace('/"{2}/', '"', $subjectMatch[1]); } return $commonName;