summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2021-01-15 11:12:09 +0100
committerTomas Mraz <tomas@openssl.org>2021-01-21 18:08:02 +0100
commit24d5be7a2a9a6b992510f055a65462e372bd1085 (patch)
treeccc7a2ee935ec3630ba71bb117cf03123a4dd0ee
parentkdf_exch.c (kdf_derive): Proper handling of NULL secret (diff)
downloadopenssl-24d5be7a2a9a6b992510f055a65462e372bd1085.tar.xz
openssl-24d5be7a2a9a6b992510f055a65462e372bd1085.zip
Make the smdh.pem test certificate usable with fips provider
Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13869)
-rw-r--r--test/smime-certs/mksmime-certs.sh3
-rw-r--r--test/smime-certs/smdh.pem72
2 files changed, 44 insertions, 31 deletions
diff --git a/test/smime-certs/mksmime-certs.sh b/test/smime-certs/mksmime-certs.sh
index b0603d4e86..d06edae98c 100644
--- a/test/smime-certs/mksmime-certs.sh
+++ b/test/smime-certs/mksmime-certs.sh
@@ -69,8 +69,7 @@ CN="Test S/MIME EE EC #3" $OPENSSL req -config ca.cnf -noenc \
$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
+$OPENSSL genpkey -genparam -algorithm DHX -out dhp.pem
# Generate X9.42 DH key.
$OPENSSL genpkey -paramfile dhp.pem -out smdh.pem
$OPENSSL pkey -pubout -in smdh.pem -out dhpub.pem
diff --git a/test/smime-certs/smdh.pem b/test/smime-certs/smdh.pem
index f831b0713b..7d66a6b421 100644
--- a/test/smime-certs/smdh.pem
+++ b/test/smime-certs/smdh.pem
@@ -1,33 +1,47 @@
-----BEGIN PRIVATE KEY-----
-MIIBSgIBADCCASsGByqGSM4+AgEwggEeAoGBANQMSgwEcnEZ31kZxa9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