diff options
author | Jonathan M. Wilbur <jonathan@wilbur.space> | 2024-08-21 01:27:43 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-08-27 16:48:57 +0200 |
commit | 0acb32052adac4730c16bb402f799bc8527bea00 (patch) | |
tree | 290cbe1c1ef3efde60fbbee323df50c0d3a847b7 | |
parent | feat: add support for issuedOnBehalfOf X.509v3 extension (diff) | |
download | openssl-0acb32052adac4730c16bb402f799bc8527bea00.tar.xz openssl-0acb32052adac4730c16bb402f799bc8527bea00.zip |
test: issuedOnBehalfOf X.509v3 extension
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25241)
-rw-r--r-- | test/certs/ext-issuedOnBehalfOf.pem | 11 | ||||
-rw-r--r-- | test/recipes/25-test_x509.t | 7 |
2 files changed, 17 insertions, 1 deletions
diff --git a/test/certs/ext-issuedOnBehalfOf.pem b/test/certs/ext-issuedOnBehalfOf.pem new file mode 100644 index 0000000000..e97ce40cd7 --- /dev/null +++ b/test/certs/ext-issuedOnBehalfOf.pem @@ -0,0 +1,11 @@ +-----BEGIN CERTIFICATE----- +MIIBpDCCAZCgAwIBAgIDAQIDMAsGCSqGSIb3DQEBBTAAMCIYDzIwMjEwODMxMDIy +OTM2WhgPMjAyMTA4MzEwMjI5MzZaMAAwggEgMAsGCSqGSIb3DQEBAQOCAQ8AMIIB +CgKCAQEAtnjLm1ts1hC4fNNt3UnQD9y73bDXgioTyWYSI3ca/KNfuTydjFTEYAmq +nuGrBOUfgbmH3PRQ0AmpqljgWTb3d3K8H4UFvDWQTPSS21IMjm8oqd19nE5GxWir +Gu0oDRzhWLHe1RZ7ZrohCPg/1Ocsy47QZuK2laFB0rEmrRWBmEYbDl3/wxf5XfqI +qpOynJB02thXrTCcTM7Rz1FqCFt/ZVZB5hKY2S+CTdE9OIVKlr4WHMfuvUYeOj06 +GkwLFJHNv2tU+tovI3mYRxUuY4UupkS3MC+Otey7XKm1P+INjWWoegm6iCAt3Vus +pVz+6pU2xgl3nrAVMQHB4fReQPH0pQIDAQABoyswKTAnBgNVHUAEIKQeMBwxGjAY +BgNVBAMMEVdpbGRib2FyIFNvZnR3YXJlMAsGCSqGSIb3DQEBBQMBAA== +-----END CERTIFICATE----- diff --git a/test/recipes/25-test_x509.t b/test/recipes/25-test_x509.t index e3873ebc85..5f68d15943 100644 --- a/test/recipes/25-test_x509.t +++ b/test/recipes/25-test_x509.t @@ -16,7 +16,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_x509"); -plan tests => 96; +plan tests => 97; # Prevent MSys2 filename munging for arguments that look like file paths but # aren't @@ -299,6 +299,11 @@ cert_contains($audit_id_cert, "09:08:07", 1, 'X509v3 Audit Identity'); +my $iobo_cert = srctop_file(@certs, "ext-issuedOnBehalfOf.pem"); +cert_contains($iobo_cert, + "DirName:CN = Wildboar", + 1, 'X.509 Issued On Behalf Of'); + sub test_errors { # actually tests diagnostics of OSSL_STORE my ($expected, $cert, @opts) = @_; my $infile = srctop_file(@certs, $cert); |