From: Dr. Stephen Henson Date: Thu, 10 Aug 2017 15:45:31 +0000 (+0100) Subject: Add alternative CMS P-256 cert X-Git-Tag: OpenSSL_1_1_1-pre1~866 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1aee92bf0f3fe243192fb5440f7c9789d5a08c67;p=oweals%2Fopenssl.git Add alternative CMS P-256 cert Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/4134) --- diff --git a/test/smime-certs/mksmime-certs.sh b/test/smime-certs/mksmime-certs.sh index 89963ecf2c..c98e164b18 100644 --- a/test/smime-certs/mksmime-certs.sh +++ b/test/smime-certs/mksmime-certs.sh @@ -64,6 +64,10 @@ CN="Test S/MIME EE EC #2" $OPENSSL req -config ca.cnf -nodes \ -keyout smec2.pem -out req.pem -newkey ec:ecp2.pem $OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec2.pem +CN="Test S/MIME EE EC #3" $OPENSSL req -config ca.cnf -nodes \ + -keyout smec3.pem -out req.pem -newkey ec:ecp.pem +$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \ + -extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec3.pem # Create X9.42 DH parameters. $OPENSSL genpkey -genparam -algorithm DH -pkeyopt dh_paramgen_type:2 \ -out dhp.pem diff --git a/test/smime-certs/smec3.pem b/test/smime-certs/smec3.pem new file mode 100644 index 0000000000..90eac867d0 --- /dev/null +++ b/test/smime-certs/smec3.pem @@ -0,0 +1,22 @@ +-----BEGIN PRIVATE KEY----- +MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQga03Rl+2K38wgwVyJ +zSy+knGorGWZBGG5p//ke0WUSbqhRANCAARH8uHBHkuOfuyXgJj7V3lNqUEPiQNo +xG8ntGjVmKRHfywdUoQJ1PgfbkCEsBk334rRFmja1r+MYyqn/A9ARiGB +-----END PRIVATE KEY----- +-----BEGIN CERTIFICATE----- +MIIC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