Skip to content

Commit 4295e6b

Browse files
committed
Better regex for more openssl versions
1 parent a32ff18 commit 4295e6b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

t/002-create-cert-from-csr.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ eval {
8585
$result = `$openssl x509 -in $certfilename -text`;
8686
};
8787

88-
like($result, qr/Issuer: C = CA, O = XML::Sig, OU = perl/, "Certificate - Issuer OK");
88+
like($result, qr/Issuer:.*XML::Sig.*perl/, "Certificate - Issuer OK");
8989
like($result, qr/Signature Algorithm: sha512WithRSAEncryption/, "Certificate - Signature OK");
9090

9191
ok($signer->get_days() eq 365, "Days were set successfully");

t/003-openssl-crypt-pkcs10.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ eval {
8888

8989
unlink $certfilename;
9090

91-
like($result, qr/Issuer: C = CA, ST = New Brunswick, O = XML::Sig, OU = perl/, "Certificate - Issuer OK");
91+
like($result, qr/Issuer:.*XML::Sig.*perl/, "Certificate - Issuer OK");
9292
like($result, qr/Signature Algorithm: sha512WithRSAEncryption/, "Certificate - Signature OK");
9393

9494
done_testing

0 commit comments

Comments
 (0)