Commit a9fc5fe0 authored by Leigh B Stoller's avatar Leigh B Stoller

Allow comma in the DN regex. Ick.

parent a16f2aa1
......@@ -394,7 +394,7 @@ sub CreateNewCert() {
#
my $DN = `$OPENSSL x509 -subject -noout -in usercert_cert.pem`;
chomp($DN);
if ($DN =~ /^subject=\s*(\/[-\/\=\w\@\.\s]+)$/) {
if ($DN =~ /^subject=\s*(\/[-\/\=\w\@\.,\s]+)$/) {
$DN = $1;
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment