-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate certificates with sensible lifetimes and add script
- Loading branch information
1 parent
e2e1bb1
commit 0153108
Showing
19 changed files
with
156 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script generates the certificates required for the "unit" | ||
# tests in axum_tls using openssl | ||
|
||
days=365000 | ||
args=("-days" "$days" "-noenc" \ | ||
-subj "/CN=localhost" \ | ||
-addext "subjectAltName=DNS:localhost,DNS:*.localhost" \ | ||
-addext "basicConstraints=critical,CA:false") | ||
|
||
set -eux | ||
|
||
openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:prime256v1 -keyout ec.pkcs8.key -out ec.crt "${args[@]}" | ||
openssl req -x509 -newkey rsa -keyout rsa.pkcs8.key -out rsa.crt "${args[@]}" | ||
openssl req -x509 -newkey ed25519 -keyout ed25519.key -out ed25519.crt "${args[@]}" | ||
|
||
openssl ec -in ec.pkcs8.key -out ec.key | ||
openssl pkey -in rsa.pkcs8.key -out rsa.pkcs1.key -traditional |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIBnzCCAUWgAwIBAgIUSTUtJUfUdERMKBwsfdRv9IbvQicwCgYIKoZIzj0EAwIw | ||
FDESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTIzMTExNDE2MDUwOVoYDzMwMjMwMzE3 | ||
MTYwNTA5WjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwWTATBgcqhkjOPQIBBggqhkjO | ||
PQMBBwNCAAR2SVEPD34AAxFuk0xYm60p7hA7+1SW+sFHazBRg32ifFd0o2Mn+Tf+ | ||
voYflBi3v4lhr361RoWB8QfmaGN05vv+o3MwcTAdBgNVHQ4EFgQUAb4jQ7RQ/xyg | ||
cZM+We8ik29/oxswHwYDVR0jBBgwFoAUAb4jQ7RQ/xygcZM+We8ik29/oxswIQYD | ||
VR0RBBowGIIJbG9jYWxob3N0ggsqLmxvY2FsaG9zdDAMBgNVHRMBAf8EAjAAMAoG | ||
CCqGSM49BAMCA0gAMEUCIA6QrxoDHQJqoly7d8VN0sj0eDvfFpbbZdSnzBd6R8AP | ||
AiEAm/PAH3IPGuHRBIpdC0rNR8F/l3WcN9I9984qKZdG5rs= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN EC PRIVATE KEY----- | ||
MHcCAQEEIBX2Z/NKGEX14QbH4kb5GXom0pqSPfX0mxdWbLb86apEoAoGCCqGSM49 | ||
AwEHoUQDQgAEdklRDw9+AAMRbpNMWJutKe4QO/tUlvrBR2swUYN9onxXdKNjJ/k3 | ||
/r6GH5QYt7+JYa9+tUaFgfEH5mhjdOb7/g== | ||
-----END EC PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgFfZn80oYRfXhBsfi | ||
RvkZeibSmpI99fSbF1ZstvzpqkShRANCAAR2SVEPD34AAxFuk0xYm60p7hA7+1SW | ||
+sFHazBRg32ifFd0o2Mn+Tf+voYflBi3v4lhr361RoWB8QfmaGN05vv+ | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIBXzCCARGgAwIBAgIUMTdemw1ehDhI74y1G3RVggvgS+kwBQYDK2VwMBQxEjAQ | ||
BgNVBAMMCWxvY2FsaG9zdDAgFw0yMzExMTQxNjA1MTBaGA8zMDIzMDMxNzE2MDUx | ||
MFowFDESMBAGA1UEAwwJbG9jYWxob3N0MCowBQYDK2VwAyEA/UW75ceWTm5/gUFx | ||
s8E8V9hwunGiS3POOaOFRL1fsomjczBxMB0GA1UdDgQWBBT0bcj2U4AWeGQY6SNU | ||
0VXdEcnjUDAfBgNVHSMEGDAWgBT0bcj2U4AWeGQY6SNU0VXdEcnjUDAhBgNVHREE | ||
GjAYgglsb2NhbGhvc3SCCyoubG9jYWxob3N0MAwGA1UdEwEB/wQCMAAwBQYDK2Vw | ||
A0EAw0W+9MuZ/yVpjgdBEYtDbgU41ESa4WwSwN9mLHcTtBrcFKhmHRe7zxoV50SB | ||
hl/lsQ2UVNAAKA1xb5teTSN4AA== | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MC4CAQAwBQYDK2VwBCIEIHk0JP05MzYNxrJz86L9EZfdP9Etbo0qpFWfWGsHMqJz | ||
-----END PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDKzCCAhOgAwIBAgIUYJV5nCxWPleHI2VvUR0N/PXW2AEwDQYJKoZIhvcNAQEL | ||
BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MCAXDTIzMTExNDE2MDUxMFoYDzMwMjMw | ||
MzE3MTYwNTEwWjAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwggEiMA0GCSqGSIb3DQEB | ||
AQUAA4IBDwAwggEKAoIBAQCl4CGc5yQkcZ8zU5oeovsITD+J/oJiNQjsXAwNHZM4 | ||
3vy4rrRlVCAHULMAecKfNwuUocETZVgU/XPKrTXhuNO+v0GmIF/bbCBk8oLRpzFI | ||
ywCgaOzybzUzeF//80neA3O2Tiplb/Y5NzK/ECvn0oZLqHrdBJcsFmskpbBn7Fep | ||
MVz4g5b7bHNim3f5PKwODRrMLTSpqKkVNmYsBTGfdRnrRM3X0EBmt3f9Zm1Vk2uI | ||
F9AamjvvIB1JbSR9HSGP3kJqKOQoeyWvwa001JqwK25DRGZiOQcMxkZOpE5j03IL | ||
6lfDFwsmGOC7cFWaN3O6XO/GdtSMU0Rq1Kr+d43TVdxNAgMBAAGjczBxMB0GA1Ud | ||
DgQWBBRNCvr3snQQYV1CeBoefp97nOcq+jAfBgNVHSMEGDAWgBRNCvr3snQQYV1C | ||
eBoefp97nOcq+jAhBgNVHREEGjAYgglsb2NhbGhvc3SCCyoubG9jYWxob3N0MAwG | ||
A1UdEwEB/wQCMAAwDQYJKoZIhvcNAQELBQADggEBAB6mrO8ZbhKGR98m0NyzE2vK | ||
PeQ8yasnUbLOf538afIlXNCEvKLQuQbYf2GlbT4fxWfimixf/iKkABYyTLGlTFMP | ||
sM7+ZEhtALTO++S4eJJNF4+ZNE0WsBYQ5ZCv46AAYROipRYkUlVO6XGnggTBPeez | ||
eQGImkni393b498P0qqH/PvFhwgH/T62N5kgKwhGcDuldYwmCqUYpvzWvFmUiC+x | ||
BbrhE70ZSLsKQjglFT4Vx8bgqPQLRUgaku6SXBNcWhRf5vvED9PGBycZ3jOsLQc3 | ||
9q9piK+zSS/5AEwkTpljDg08n6AkfT8ODpHfa2XsoDf/qiVb7iTAMD+In+fIPy8= | ||
-----END CERTIFICATE----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEowIBAAKCAQEApeAhnOckJHGfM1OaHqL7CEw/if6CYjUI7FwMDR2TON78uK60 | ||
ZVQgB1CzAHnCnzcLlKHBE2VYFP1zyq014bjTvr9BpiBf22wgZPKC0acxSMsAoGjs | ||
8m81M3hf//NJ3gNztk4qZW/2OTcyvxAr59KGS6h63QSXLBZrJKWwZ+xXqTFc+IOW | ||
+2xzYpt3+TysDg0azC00qaipFTZmLAUxn3UZ60TN19BAZrd3/WZtVZNriBfQGpo7 | ||
7yAdSW0kfR0hj95CaijkKHslr8GtNNSasCtuQ0RmYjkHDMZGTqROY9NyC+pXwxcL | ||
Jhjgu3BVmjdzulzvxnbUjFNEatSq/neN01XcTQIDAQABAoIBAAULC9clWlVrdsuc | ||
u44nr5fUBxDydDxwEpChY1/7bAhHpnLd/32VnQL2NgpzRK4TndLXNSXRNbp4NzyR | ||
A83mmlnEeljPx4bhfb2lHAtQQfepJBdX3MHOVfoRT+NQ3lFjFPsm/+FXkeqfMq70 | ||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BNzB1CTg1j | ||
UCUPiJtM1ymPwQ18y9GEREjISg2ZDm4WIxBMzFI4PrNplUp9Uc7W | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCl4CGc5yQkcZ8z | ||
U5oeovsITD+J/oJiNQjsXAwNHZM43vy4rrRlVCAHULMAecKfNwuUocETZVgU/XPK | ||
rTXhuNO+v0GmIF/bbCBk8oLRpzFIywCgaOzybzUzeF//80neA3O2Tiplb/Y5NzK/ | ||
ECvn0oZLqHrdBJcsFmskpbBn7FepMVz4g5b7bHNim3f5PKwODRrMLTSpqKkVNmYs | ||
BTGfdRnrRM3X0EBmt3f9Zm1Vk2uIF9AamjvvIB1JbSR9HSGP3kJqKOQoeyWvwa00 | ||
1JqwK25DRGZiOQcMxkZOpE5j03IL6lfDFwsmGOC7cFWaN3O6XO/GdtSMU0Rq1Kr+ | ||
d43TVdxNAgMBAAECggEABQsL1yVaVWt2y5y7jievl9QHEPJ0PHASkKFjX/tsCEem | ||
ct3/fZWdAvY2CnNErhOd0tc1JdE1ung3PJEDzeaaWcR6WM/HhuF9vaUcC1BB96kk | ||
F1fcwc5V+hFP41DeUWMU+yb/4VeR6p8yrvTtO6mVh5zX5yiR0jLKuKPWi95S2B0r | ||
0IFd46F2tNsYZBK8UqGKNmeH6ZEB743mFDUJu5qTkXwigEpsD4ELpzxz8RY+/m0+ | ||
nNNwKJ8b2cTs4jBsOYBiDveWMtuG2tqf8oLn8rQke4QvomO3O19wxlSZZR2WNNlV | ||
scwsBdVUrZJSyF9AT4Ut1KHv/KAfyECQS0HyQ6ps0QKBgQDRVeFQx88p93eTFtsy | ||
CwRfSuC/fUk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