Add alternative CMS P-256 cert
authorDr. Stephen Henson <steve@openssl.org>
Thu, 10 Aug 2017 15:45:31 +0000 (16:45 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 10 Aug 2017 15:48:18 +0000 (16:48 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4134)

test/smime-certs/mksmime-certs.sh
test/smime-certs/smec3.pem [new file with mode: 0644]

index 89963ecf2cd81ed216502e09ccb6ddc7dff549ba..c98e164b18712d98b473367ab9cf63f9a0891138 100644 (file)
@@ -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 (file)
index 0000000..90eac86
--- /dev/null
@@ -0,0 +1,22 @@
+-----BEGIN PRIVATE KEY-----
+MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQga03Rl+2K38wgwVyJ
+zSy+knGorGWZBGG5p//ke0WUSbqhRANCAARH8uHBHkuOfuyXgJj7V3lNqUEPiQNo
+xG8ntGjVmKRHfywdUoQJ1PgfbkCEsBk334rRFmja1r+MYyqn/A9ARiGB
+-----END PRIVATE KEY-----
+-----BEGIN CERTIFICATE-----
+MIICoDCCAYigAwIBAgIJAPaEOllWs/pjMA0GCSqGSIb3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