Skip to content

Commit

Permalink
Make certs expire in 1000 years
Browse files Browse the repository at this point in the history
  • Loading branch information
clundin25 committed Oct 11, 2024
1 parent 3213762 commit a5c0d3b
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 29 deletions.
Binary file modified platform/src/test_data/cert_256.der
Binary file not shown.
18 changes: 9 additions & 9 deletions platform/src/test_data/cert_256.pem
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
-----BEGIN CERTIFICATE-----
MIIBlzCCAT2gAwIBAgIUeQVZ6U6HZwTVFi18tkINRNFL5aUwCgYIKoZIzj0EAwIw
GTEXMBUGA1UEAwwORFBFIFRlc3QgQWxpYXMwHhcNMjQxMDExMjA1MTI1WhcNMjUx
MDExMjA1MTI1WjAZMRcwFQYDVQQDDA5EUEUgVGVzdCBBbGlhczBZMBMGByqGSM49
AgEGCCqGSM49AwEHA0IABOcKHSCc7bo4DD43LNCtEf6osYUY0JKnycc6oYMEzk9V
k3/2xR9G2eGvAQcl5dzXjjY85vj8fmEPM6S2gBZ+gv2jYzBhMB0GA1UdDgQWBBQ3
/zRV2mHbEd8gDWQLjjKQh9qXhDAfBgNVHSMEGDAWgBQ3/zRV2mHbEd8gDWQLjjKQ
h9qXhDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwICBDAKBggqhkjOPQQD
AgNIADBFAiB4vZAJSZ+BJvraMIqprVGyCZjaDROvzptqmEF5VP0C/wIhANVyB0+O
FJmLetb82n/4y02Hkxx9pVg+i7HYn6uuexhe
MIIBmTCCAT+gAwIBAgIUO0ooMg2tKjzwxL9JmsDfJU4+4P0wCgYIKoZIzj0EAwIw
GTEXMBUGA1UEAwwORFBFIFRlc3QgQWxpYXMwIBcNMjQxMDExMjExOTAxWhgPMzAy
NDAyMTIyMTE5MDFaMBkxFzAVBgNVBAMMDkRQRSBUZXN0IEFsaWFzMFkwEwYHKoZI
zj0CAQYIKoZIzj0DAQcDQgAEnH/OkctnyQxNxBE+29NqpKCowtUL8Kkoac8cAvwH
5KiCLhwlgUXG02AROr3GAizzo5uoqlUPT7pibkUjy7s/PqNjMGEwHQYDVR0OBBYE
FMUuA+qwde9WKVMGboD8hePco6abMB8GA1UdIwQYMBaAFMUuA+qwde9WKVMGboD8
hePco6abMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgIEMAoGCCqGSM49
BAMCA0gAMEUCIAE2kcauPlu1AZmfk5Fu35hteYjvdrUgHHIS1haAibAeAiEA5SdE
s5qqdKFbqnsxL1SrppBh4OYeOZbUzTtzANMKUzI=
-----END CERTIFICATE-----
Binary file modified platform/src/test_data/cert_384.der
Binary file not shown.
20 changes: 10 additions & 10 deletions platform/src/test_data/cert_384.pem
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIB0zCCAVqgAwIBAgIUBsB378clJQn8b0O53LDNi573WE8wCgYIKoZIzj0EAwIw
GTEXMBUGA1UEAwwORFBFIFRlc3QgQWxpYXMwHhcNMjQxMDExMjA1MTI1WhcNMjUx
MDExMjA1MTI1WjAZMRcwFQYDVQQDDA5EUEUgVGVzdCBBbGlhczB2MBAGByqGSM49
AgEGBSuBBAAiA2IABOHhUhGBv7ILQDKPAXq5E0wqisBhCrfrUkvu2wT9j1Hm3GeR
9aTnwt/O4GNcmCyC03Mx9/U6bgl+FvnrUl5vdqh7SmykSUpJY0MeXZNiBzDgvzzT
wmk24gHHA1s0FJmVC6NjMGEwHQYDVR0OBBYEFFynYJxYk+cXjG3IXIGzzmJs+Orl
MB8GA1UdIwQYMBaAFFynYJxYk+cXjG3IXIGzzmJs+OrlMA8GA1UdEwEB/wQFMAMB
Af8wDgYDVR0PAQH/BAQDAgIEMAoGCCqGSM49BAMCA2cAMGQCMHr6NXx1KFDu3kL+
Bq3bVBqT7+IJoDsweIz/PAbSwyQ6h5hYqrs1sYBrjQNGl1oicwIwLQtIDkjBLfxu
IA2mC2oejDgz29n3nICn9co+C31RDv+cp+2fkEW62FqlCZnEt2lr
MIIB1TCCAVygAwIBAgIUUYAyucQJdxAeQVhaFxTjNi4b4sYwCgYIKoZIzj0EAwIw
GTEXMBUGA1UEAwwORFBFIFRlc3QgQWxpYXMwIBcNMjQxMDExMjExOTAxWhgPMzAy
NDAyMTIyMTE5MDFaMBkxFzAVBgNVBAMMDkRQRSBUZXN0IEFsaWFzMHYwEAYHKoZI
zj0CAQYFK4EEACIDYgAEyUXZY0z4675+AqzOwefjitMcLBif5qnvC9uw/G8FzkqP
QSkIrLUKk3etSsUUoftG6qHa2k8RHDbKUHYf7ZTYi6EgR5NI+nblbitOHnvJ2hcL
PA9Dc8AJx/jssShUz+ffo2MwYTAdBgNVHQ4EFgQUooy0oiM+HZdvh33/Z6PQPyOA
esAwHwYDVR0jBBgwFoAUooy0oiM+HZdvh33/Z6PQPyOAesAwDwYDVR0TAQH/BAUw
AwEB/zAOBgNVHQ8BAf8EBAMCAgQwCgYIKoZIzj0EAwIDZwAwZAIwYzezYlM89lM7
fBTai0nWflgMISD20qqpcDc9kaWJrqTWgm8V2HIbPMmDiQlxg6MmAjB1Aiii6Snr
ZJCYxFHiOQfOFtoK+7vDsU2tlOlAyk/fQ30YQCPGbjeRBPYOBLnE2OI=
-----END CERTIFICATE-----
6 changes: 3 additions & 3 deletions platform/src/test_data/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
set -ex

openssl ecparam -name prime256v1 -genkey -noout -out key_256.pem
openssl req -new -key key_256.pem -x509 -nodes -days 365 -out cert_256.pem \
openssl req -new -key key_256.pem -x509 -nodes -days 365000 -out cert_256.pem \
-addext keyUsage=critical,keyCertSign \
-subj /CN="DPE Test Alias"/
openssl ec -in key_256.pem -outform DER -out key_256.der
openssl x509 -in cert_256.pem -outform DER -out cert_256.der

openssl ecparam -name secp384r1 -genkey -noout -out key_384.pem
openssl req -new -key key_384.pem -x509 -nodes -days 365 -out cert_384.pem \
openssl req -new -key key_384.pem -x509 -nodes -days 365000 -out cert_384.pem \
-addext keyUsage=critical,keyCertSign \
-subj /CN="DPE Test Alias"/
openssl ec -in key_384.pem -outform DER -out key_384.der
openssl x509 -in cert_384.pem -outform DER -out cert_384.der
openssl x509 -in cert_384.pem -outform DER -out cert_384.der
Binary file modified platform/src/test_data/key_256.der
Binary file not shown.
6 changes: 3 additions & 3 deletions platform/src/test_data/key_256.pem
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIP+8sn0yQZAW9S4jkPCfVtq/MAgDL26S09cRkm5mLqp/oAoGCCqGSM49
AwEHoUQDQgAE5wodIJztujgMPjcs0K0R/qixhRjQkqfJxzqhgwTOT1WTf/bFH0bZ
4a8BByXl3NeONjzm+Px+YQ8zpLaAFn6C/Q==
MHcCAQEEIJoSu3ylek5gO4QtkBF0ZZEjok7Lc/EvNyhRoWbphdiioAoGCCqGSM49
AwEHoUQDQgAEnH/OkctnyQxNxBE+29NqpKCowtUL8Kkoac8cAvwH5KiCLhwlgUXG
02AROr3GAizzo5uoqlUPT7pibkUjy7s/Pg==
-----END EC PRIVATE KEY-----
Binary file modified platform/src/test_data/key_384.der
Binary file not shown.
8 changes: 4 additions & 4 deletions platform/src/test_data/key_384.pem
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-----BEGIN EC PRIVATE KEY-----
MIGkAgEBBDAaOW34LaOvF2vC5bHvaXAegfBSXFgbshFXVxUIgVV+8r5XYvfYE3MO
594zkn6TMfCgBwYFK4EEACKhZANiAATh4VIRgb+yC0AyjwF6uRNMKorAYQq361JL
7tsE/Y9R5txnkfWk58LfzuBjXJgsgtNzMff1Om4Jfhb561Jeb3aoe0pspElKSWND
Hl2TYgcw4L8808JpNuIBxwNbNBSZlQs=
MIGkAgEBBDBvfCm6MgLqpqgOfHZThIxnl1+zTbvH2qEAg0RX2c4Tf1f/KGAYRsc1
ObHWEY4LTFSgBwYFK4EEACKhZANiAATJRdljTPjrvn4CrM7B5+OK0xwsGJ/mqe8L
27D8bwXOSo9BKQistQqTd61KxRSh+0bqodraTxEcNspQdh/tlNiLoSBHk0j6duVu
K04ee8naFws8D0NzwAnH+OyxKFTP598=
-----END EC PRIVATE KEY-----

0 comments on commit a5c0d3b

Please sign in to comment.