isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/0066-replace-expired-certs.patch

22d461
diff --git a/test/certs/embeddedSCTs1_issuer.pem b/test/certs/embeddedSCTs1_issuer.pem
22d461
index 1fa449d5a098..6aa9455f09ed 100644
22d461
--- a/test/certs/embeddedSCTs1_issuer.pem
22d461
+++ b/test/certs/embeddedSCTs1_issuer.pem
22d461
@@ -1,18 +1,18 @@
22d461
 -----BEGIN CERTIFICATE-----
22d461
-MIIC0DCCAjmgAwIBAgIBADANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJHQjEk
22d461
+MIIC0jCCAjugAwIBAgIBADANBgkqhkiG9w0BAQsFADBVMQswCQYDVQQGEwJHQjEk
22d461
 MCIGA1UEChMbQ2VydGlmaWNhdGUgVHJhbnNwYXJlbmN5IENBMQ4wDAYDVQQIEwVX
22d461
-YWxlczEQMA4GA1UEBxMHRXJ3IFdlbjAeFw0xMjA2MDEwMDAwMDBaFw0yMjA2MDEw
22d461
-MDAwMDBaMFUxCzAJBgNVBAYTAkdCMSQwIgYDVQQKExtDZXJ0aWZpY2F0ZSBUcmFu
22d461
-c3BhcmVuY3kgQ0ExDjAMBgNVBAgTBVdhbGVzMRAwDgYDVQQHEwdFcncgV2VuMIGf
22d461
-MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDVimhTYhCicRmTbneDIRgcKkATxtB7
22d461
-jHbrkVfT0PtLO1FuzsvRyY2RxS90P6tjXVUJnNE6uvMa5UFEJFGnTHgW8iQ8+EjP
22d461
-KDHM5nugSlojgZ88ujfmJNnDvbKZuDnd/iYx0ss6hPx7srXFL8/BT/9Ab1zURmnL
22d461
-svfP34b7arnRsQIDAQABo4GvMIGsMB0GA1UdDgQWBBRfnYgNyHPmVNT4DdjmsMEk
22d461
-tEfDVTB9BgNVHSMEdjB0gBRfnYgNyHPmVNT4DdjmsMEktEfDVaFZpFcwVTELMAkG
22d461
-A1UEBhMCR0IxJDAiBgN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QEBCwUAA4GBAD0aYh9OkFYfXV7kBfhrtD0PJG2U47OV/1qq
22d461
++uFpqB0S1WO06eJT0pzYf1ebUcxjBkajbJZm/FHT85VthZ1lFHsky87aFD8XlJCo
22d461
+2IOhKOkvvWKPUdFLoO/ZVXqEVKkcsS1eXK1glFvb07eJZya3JVG0KdMhV2YoDg6c
22d461
+Doud4XrO
22d461
 -----END CERTIFICATE-----
22d461
diff --git a/test/certs/sm2-ca-cert.pem b/test/certs/sm2-ca-cert.pem
22d461
index 5677ac6c9f6a..70ce71e43091 100644
22d461
--- a/test/certs/sm2-ca-cert.pem
22d461
+++ b/test/certs/sm2-ca-cert.pem
22d461
@@ -1,14 +1,14 @@
22d461
 -----BEGIN CERTIFICATE-----
22d461
-MIICJDCCAcqgAwIBAgIJAOlkpDpSrmVbMAoGCCqBHM9VAYN1MGgxCzAJBgNVBAYT
22d461
+MIICJzCCAcygAwIBAgIJAOlkpDpSrmVbMAoGCCqBHM9VAYN1MGgxCzAJBgNVBAYT
22d461
 AkNOMQswCQYDVQQIDAJMTjERMA8GA1UEBwwIU2hlbnlhbmcxETAPBgNVBAoMCFRl
22d461
-c3QgT3JnMRAwDgYDVQQLDAdUZXN0IE9VMRQwEgYDVQQDDAtUZXN0IFNNMiBDQTAe
22d461
-Fw0xOTAyMTkwNzA1NDhaFw0yMzAzMzAwNzA1NDhaMGgxCzAJBgNVBAYTAkNOMQsw
22d461
-CQYDVQQIDAJMTjERMA8GA1UEBwwIU2hlbnlhbmcxETAPBgNVBAoMCFRlc3QgT3Jn
22d461
-MRAwDgYDVQQLDAdUZXN0IE9VMRQwEgYDVQQDDAtUZXN0IFNNMiBDQTBZMBMGByqG
22d461
-SM49AgEGCCqBHM9VAYItA0IABHRYnqErofBdXPptvvO7+BSVJxcpHuTGnZ+UPrbU
22d461
-5kVEUMaUnNOeMJZl/vRGimZCm/AkReJmRfnb15ESHR+ssp6jXTBbMB0GA1UdDgQW
22d461
-BBTFjcWu/zJgSZ5SKUlU5Vx4/0W5dDAfBgNVHSMEGDAWgBTFjcWu/zJgSZ5SKUlU
22d461
-5Vx4/0W5dDAMBgNVHRMEBTADAQH/MAsGA1UdDwQEAwIBBjAKBggqgRzPVQGDdQNI
22d461
-ADBFAiEAs6byi1nSQtFELOw/2tQIv5AEsZFR5MJ/oB2ztXzs2LYCIEfIw4xlUH6X
22d461
-YFhs4RnIa0K9Ng1ebsGPrifYkudwBIk3
22d461
+c3QgT3JnMRAwDgYDVQQLDAdUZXN0IE9VMRQwEgYDVQQDDAtUZXN0IFNNMiBDQTAg
22d461
+Fw0yMjA2MDIxNTQ5MzlaGA8yMTIyMDUwOTE1NDkzOVowaDELMAkGA1UEBhMCQ04x
22d461
+CzAJBgNVBAgMAkxOMREwDwYDVQQHDAhTaGVueWFuZzERMA8GA1UECgwIVGVzdCBP
22d461
+cmcxEDAOBgNVBAsMB1Rlc3QgT1UxFDASBgNVBAMMC1Rlc3QgU00yIENBMFkwEwYH
22d461
+KoZIzj0CAQYIKoEcz1UBgi0DQgAEdFieoSuh8F1c+m2+87v4FJUnFyke5Madn5Q+
22d461
+ttTmRURQxpSc054wlmX+9EaKZkKb8CRF4mZF+dvXkRIdH6yynqNdMFswHQYDVR0O
22d461
+BBYEFMWNxa7/MmBJnlIpSVTlXHj/Rbl0MB8GA1UdIwQYMBaAFMWNxa7/MmBJnlIp
22d461
+SVTlXHj/Rbl0MAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMAoGCCqBHM9VAYN1
22d461
+A0kAMEYCIQC3c2TkO6Lyxt5GNZqoZNuMEphjL9K7W1TsX6mHzlhHDwIhAICXy2XC
22d461
+WsTzdrMZUXLtrDDFOq+3FaD4pe1HP2LZFNpu
22d461
 -----END CERTIFICATE-----
22d461
diff --git a/test/certs/sm2-root.crt b/test/certs/sm2-root.crt
22d461
index 5677ac6c9f6a..70ce71e43091 100644
22d461
--- a/test/certs/sm2-root.crt
22d461
+++ b/test/certs/sm2-root.crt
22d461
@@ -1,14 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EBhMCQ04x
22d461
+CzAJBgNVBAgMAkxOMREwDwYDVQQHDAhTaGVueWFuZzERMA8GA1UECgwIVGVzdCBP
22d461
+cmcxEDAOBgNVBAsMB1Rlc3QgT1UxFDASBgNVBAMMC1Rlc3QgU00yIENBMFkwEwYH
22d461
+KoZIzj0CAQYIKoEcz1UBgi0DQgAEdFieoSuh8F1c+m2+87v4FJUnFyke5Madn5Q+
22d461
+ttTmRURQxpSc054wlmX+9EaKZkKb8CRF4mZF+dvXkRIdH6yynqNdMFswHQYDVR0O
22d461
+BBYEFMWNxa7/MmBJnlIpSVTlXHj/Rbl0MB8GA1UdIwQYMBaAFMWNxa7/MmBJnlIp
22d461
+SVTlXHj/Rbl0MAwGA1UdEwQFMAMBAf8wCwYDVR0PBAQDAgEGMAoGCCqBHM9VAYN1
22d461
+A0kAMEYCIQC3c2TkO6Lyxt5GNZqoZNuMEphjL9K7W1TsX6mHzlhHDwIhAICXy2XC
22d461
+WsTzdrMZUXLtrDDFOq+3FaD4pe1HP2LZFNpu
22d461
 -----END CERTIFICATE-----
22d461
diff --git a/test/certs/sm2.pem b/test/certs/sm2.pem
22d461
index 189abb137625..daf12926aff9 100644
22d461
--- a/test/certs/sm2.pem
22d461
+++ b/test/certs/sm2.pem
22d461
@@ -1,13 +1,14 @@
22d461
 -----BEGIN CERTIFICATE-----
22d461
-MIIB6DCCAY6gAwIBAgIJAKH2BR6ITHZeMAoGCCqBHM9VAYN1MGgxCzAJBgNVBAYT
22d461
-AkNOMQswCQYDVQQIDAJMTjERMA8GA1UEBwwIU2hlbnlhbmcxETAPBgNVBAoMCFRl
22d461
-c3QgT3JnMRAwDgYDVQQLDAdUZXN0IE9VMRQwEgYDVQQDDAtUZXN0IFNNMiBDQTAe
22d461
-Fw0xOTAyMTkwNzA1NDhaFw0yMzAzMzAwNzA1NDhaMG8xCzAJBgNVBAYTAkNOMQsw
22d461
-CQYDVQQIDAJMTjERMA8GA1UEBwwIU2hlbnlhbmcxETAPBgNVBAoM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wQYMBaAFMWNxa7/MmBJnlIpSVTlXHj/
22d461
+Rbl0MAoGCCqBHM9VAYN1A0cAMEQCIG3gG1D7T7ltn6Gz1UksBZahgBE6jmkQ9Sp9
22d461
+/3aY5trlAiB5adxiK0avV0LEKfbzTdff9skoZpd7vje1QTW0l0HaGg==
22d461
 -----END CERTIFICATE-----
22d461
diff --git a/test/smime-certs/mksmime-certs.sh b/test/smime-certs/mksmime-certs.sh
22d461
index 12e8a7305402..109b9c4abc28 100644
22d461
--- a/test/smime-certs/mksmime-certs.sh
22d461
+++ b/test/smime-certs/mksmime-certs.sh
22d461
@@ -15,23 +15,23 @@ export OPENSSL_CONF
22d461
 
22d461
 # Root CA: create certificate directly
22d461
 CN="Test S/MIME RSA Root" $OPENSSL req -config ca.cnf -x509 -noenc \
22d461
-	-keyout smroot.pem -out smroot.pem -newkey rsa:2048 -days 3650
22d461
+	-keyout smroot.pem -out smroot.pem -newkey rsa:2048 -days 36501
22d461
 
22d461
 # EE RSA certificates: create request first
22d461
 CN="Test S/MIME EE RSA #1" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smrsa1.pem -out req.pem -newkey rsa:2048
22d461
 # Sign request: end entity extensions
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa1.pem
22d461
 
22d461
 CN="Test S/MIME EE RSA #2" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smrsa2.pem -out req.pem -newkey rsa:2048
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa2.pem
22d461
 
22d461
 CN="Test S/MIME EE RSA #3" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smrsa3.pem -out req.pem -newkey rsa:2048
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smrsa3.pem
22d461
 
22d461
 # Create DSA parameters
22d461
@@ -40,15 +40,15 @@ $OPENSSL dsaparam -out dsap.pem 2048
22d461
 
22d461
 CN="Test S/MIME EE DSA #1" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smdsa1.pem -out req.pem -newkey dsa:dsap.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa1.pem
22d461
 CN="Test S/MIME EE DSA #2" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smdsa2.pem -out req.pem -newkey dsa:dsap.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa2.pem
22d461
 CN="Test S/MIME EE DSA #3" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smdsa3.pem -out req.pem -newkey dsa:dsap.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdsa3.pem
22d461
 
22d461
 # Create EC parameters
22d461
@@ -58,16 +58,17 @@ $OPENSSL ecparam -out ecp2.pem -name K-283
22d461
 
22d461
 CN="Test S/MIME EE EC #1" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smec1.pem -out req.pem -newkey ec:ecp.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec1.pem
22d461
 CN="Test S/MIME EE EC #2" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smec2.pem -out req.pem -newkey ec:ecp2.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec2.pem
22d461
-CN="Test S/MIME EE EC #3" $OPENSSL req -config ca.cnf -noenc \
22d461
-	-keyout smec3.pem -out req.pem -newkey ec:ecp.pem
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
-	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec3.pem
22d461
+# Do not renew this cert as it is used for legacy data decrypt test
22d461
+#CN="Test S/MIME EE EC #3" $OPENSSL req -config ca.cnf -noenc \
22d461
+#	-keyout smec3.pem -out req.pem -newkey ec:ecp.pem
22d461
+#$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
+#	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smec3.pem
22d461
 # Create X9.42 DH parameters.
22d461
 $OPENSSL genpkey -genparam -algorithm DHX -out dhp.pem
22d461
 # Generate X9.42 DH key.
22d461
@@ -77,7 +78,7 @@ $OPENSSL pkey -pubout -in smdh.pem -out dhpub.pem
22d461
 CN="Test S/MIME EE DH #1" $OPENSSL req -config ca.cnf -noenc \
22d461
 	-keyout smtmp.pem -out req.pem -newkey rsa:2048
22d461
 # Sign request but force public key to DH
22d461
-$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 3600 \
22d461
+$OPENSSL x509 -req -in req.pem -CA smroot.pem -days 36500 \
22d461
 	-force_pubkey dhpub.pem \
22d461
 	-extfile ca.cnf -extensions usr_cert -CAcreateserial >>smdh.pem
22d461
 # Remove temp files.