diff --git a/utils/verify-cn b/utils/verify-cn index 6e747ef1..b45f72e4 100755 --- a/utils/verify-cn +++ b/utils/verify-cn @@ -37,7 +37,7 @@ if ($depth == 0) { # If so, parse out the common name substring in # the X509 subject string. - if ($x509 =~ / CN=([^,]+)/) { + if (($x509 =~ / CN=([^,]+)/) || ($x509 =~ /\/CN=([^\/]+)/)) { $cn = $1; # Accept the connection if the X509 common name # string matches the passed cn argument.