Skip to content

Commit

Permalink
fix: SSL Certs (request#3062)
Browse files Browse the repository at this point in the history
- Small readme talking about the issue
- Generate all certs for 10 years
- one command to update all of them
  • Loading branch information
reconbot authored Nov 22, 2018
1 parent 26d6cce commit 1befd90
Show file tree
Hide file tree
Showing 16 changed files with 242 additions and 221 deletions.
8 changes: 8 additions & 0 deletions tests/ssl/ca/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Generating SSL Certs for tests

Certs are generated for TLS tests. The localhost, client and server certs for use in test are generated by running;
```
./gen-all-certs.sh
```

They should last 10 years, but can be updated at any time.
2 changes: 1 addition & 1 deletion tests/ssl/ca/ca.srl
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ADF62016AA40C9C5
ADF62016AA40C9C7
52 changes: 26 additions & 26 deletions tests/ssl/ca/client-enc.key
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,7FD4AC5078EE99FCA866A397D64EAC81
DEK-Info: AES-128-CBC,F383CD86ECED9F72E8A8A5671B9B478F

+CpgDIrsR4ZjXY5uo4rG8WxFgwnElNlj4c9ujgUgyx1vwerNYn59MKruDi2oMUHc
jDyN68zSiRIc2zuXnfHPtUUbt4CN1Xy2DOCZ0Fkrr4hNOlwpP6IZYJcjTJ+evnIO
EeayFEYoZhqyPgnGleWwNpOEc/33jsXup/DQHfmi0ot6rfdg1kpT/pAhhYE2ivQo
mfdAizNAluyM2yggdEmRJoWrC+YAxb5fW1wAQFT5YOS+t5TBlCphj18JhsEbeKZg
eS1ZNg+8YRSHYF2U7xN7AKtzdBi4Fof8sXhW1MOVU0Ebfg7QibBtPoaz59NT0+Pj
r507m2RrXjBwuoU08L1hOA4C5rXd/sT3B925jBpTE05GC8zYouNoazafxMwij+ZO
7HK2Uza3EuaQHIEi1QxARM+m0xv3LDPRJyWKnaOxTzeKmeEpM4471x9YJU07E1+K
VrKomLLiWenb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9hI4YBL43+hsJWaxVMpT022ZB6bcTgYFTDQcoAwilOoadF+rVxer/
ry8ORowY5GRH+zlLE3zetn87EAijwux2/QhnGE3eDFc0FbI008wzRQwhqV/S22yF
XYKh5ni5Xg2tguUMuBC8hr9xjpUe3nP7u/W45f/0BCE6eeJzXTunMWTrBCigMzEq
7OvmIhz7sqb18NC68z4Fj5vmpSqf8//RCyE7Sk0pX7VgSIKX92qopqi/5yroQwFf
jLanlxi4QRBLTBJoXnm+I5kh6dEbV0OaUskKwXqW5T2wAgOx5O6TTK+ZeFGyLSMW
eJY6UnT/6vWAY10O5JiieRbzBaGGJgAQ1fTZYs16F3kbKYR9YvrQKi0ACo2pkYs8
1FvblxhmpMNRjpvOSpb+71vVgk8hD/v5XaVvVC4Wrm6gnsjlNZD0vQjcOWs1Q/a/
jWKeB/gTUMIa5CWdzNRvSq2Cvgu5FJYf5qIdii7+FOgDv5VKgUugP5ZHHDQ1iwMZ
o8NfMheG2x5ottq1m7VFS8IB+pWjJfsxSFtybJ8rdHzlbmEQyPzWYCWIQXPVvpNs
oBm36btgWMrzQTjDrt+WKhkuau0NacTZqjugpCJKimBQ/lLYiuxjItUoWKn0mQO4
-----END RSA PRIVATE KEY-----
24 changes: 12 additions & 12 deletions tests/ssl/ca/client.crt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDLjCCApcCCQCt9iAWqkDJxDANBgkqhkiG9w0BAQsFADCBojELMAkGA1UEBhMC
MIIDLjCCApcCCQCt9iAWqkDJxzANBgkqhkiG9w0BAQUFADCBojELMAkGA1UEBhMC
VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMRAwDgYDVQQKEwdyZXF1
ZXN0MSYwJAYDVQQLEx1yZXF1ZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTESMBAG
A1UEAxMJcmVxdWVzdENBMSYwJAYJKoZIhvcNAQkBFhdtaWtlYWxAbWlrZWFscm9n
ZX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Rp+lcr+uraJg4sP9xEpZbq/CO1q584EQmiANVL3
NAPdXf2kP91lUy+F5gZgZqkuPtDRXk1jqxTswRLqBmP5ublM/b9ZQS2Jmih7rVL4
FiTo6E2DdjSYiZ1cQKSBw3rFWhiFLe3R2BjqK+/uD/hDdcT9sEtdqxLyLqFFBKLa
cYcHcnZOMaohmN8vup26D199r5VP6cJvAh93XfxpCiNDl/S4KSCDq5G5AgMBAAEw
DQYJKoZIhvcNAQEFBQADgYEAjINjRQxACmbp77ymVwaiUiy9YXbXLSsu8auZYDlu
LqiZMIjm6hOOHZPlCC7QXBBRyUKXQnRC4+mOxWfcMwEztYqrX51fP/hVB0aF7hXg
hcn0Ge65N9P8Kby6k/2ha/NQW7I17Sgg1PrvN5BkDFnZBrhNwZbzWwxwezifUwob
ITQ=
-----END CERTIFICATE-----
26 changes: 13 additions & 13 deletions tests/ssl/ca/client.csr
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
MIIC+DCCAeACAQAwgY8xCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJDQTEQMA4GA1UE
BwwHT2FrbGFuZDEQMA4GA1UECgwHcmVxdWVzdDEaMBgGA1UECwwRcmVxdWVzdEBs
b2NhbGhvc3QxEzARBgNVBAMMClRlc3RDbGllbnQxHjAcBgkqhkiG9w0BCQEWD2Rv
Lm5vdEBlbWFpbC5tZTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANEP
caZ50AtmkMJdDvwLYSGfRH4XuOfhxs5M4c4EoZsURvbkizuQdZB8HgBs6Bcuz9Lr
HwOAUc0qvmIigeIl6tIh4ZFMm0s2cmxd+ftz05m0HCZHd66JA7968/sdIlm96Xiu
Fv7ylEx/YwDEELQPrPnqJuWdQslqiGqMM+/0PfyDtEjthW6srTl+PCfAHbX8ZFiH
6+bmp3Dvw34JMw/atjkgePgwlzGo2kluAxZny8NRjVR/0k1BuuXWUph4MXOETeP7
W4A9XvXWysku8JSqhc9t9LUooAkAlByF4H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HTBWFT1lf1iOSsD7mT1GOaFmmc81Z6pUUjN8WNk7ybfPoLfb
b+MNKkEqVVw1Ta/TeKGbc+K4Xi/T7VAAP2pJRY9ftrjDm1nciGJHu9NGyjAc8TQB
YabIRAD7sdZkOWR0RSk06gJDqQGNqhn0tjzruDRdrtv5l1UiSPrrnyTOd75mZwXj
LFs5qIQT5W/LRLJ4BkW3YNSiwFJxQ8a4DddYhkd+CadefQtRdgEI3+GhNcQ=
-----END CERTIFICATE REQUEST-----
50 changes: 25 additions & 25 deletions tests/ssl/ca/client.key
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEA0Q9xpnnQC2aQwl0O/AthIZ9Efhe45+HGzkzhzgShmxRG9uSL
O5B1kHweAGzoFy7P0usfA4BRzSq+YiKB4iXq0iHhkUybSzZybF35+3PTmbQcJkd3
rokDv3rz+x0iWb3peK4W/vKUTH9jAMQQtA+s+eom5Z1CyWqIaowz7/Q9/IO0SO2F
bqytOX48J8AdtfxkWIfr5uancO/DfgkzD9q2OSB4+DCXMajaSW4DFmfLw1GNVH/S
TUG65dZSmHgxc4RN4/tbgD1e9dbKyS7wlKqFz230tSigCQCUHIXgc3eFJesFlCwQ
jCxj8N4+sTqAc+oisAJ/qjkIK6NkEKYnY/4JBQIDAQABAoIBAF7P3EEd2YZyG5Cq
V5NjLcfrzUpKQ+eV8224XGfsncYRKiXqfGKlH0xJnemfepqY9lO3ojcaSP79NZ6X
+8OuYpKuHvigf4VaygXvkOHDI+H/VwzdOKAFL5f1kRT/n4aHpIzAl1lEdpFC7Il6
YgDnYxFsafuUmKd0Ey4PK7bVVA9icagrWCaRcNBuA8rOHUKejlwag9uFthQzXVib
mRNl0Oc8TgYRnP53vicsJm2zxj/Mvg/ZpefoSDaq1zanNWGjbr0exI3/bFAScWkF
ThfTn9NIzyrRCFwNLRV3BcgfALPrP86Npc7fkGDhSUj0Vg5I0FqiF3Bzx5zx5mSB
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5jUCB5Hi
ezZCxQSSqgCwQtLjxRL8CkECgYEAwI6OUUQfnM454J0ax5vBASSryWHS2MXlxK3N
EUOPJeAF3klhExJK8wj+zL1V6d0ZthljI5lEOEIWEdmaOORwXJxEw1UKrVE+Lfah
jOY8ZK6z6mRtJWUSFJ4kjIs8B++Cjwekno3uIYENstdp4ogzzCxKzn3J6r5o/CcN
KINHuUECgYB82O06BuRuSWYYM3qHxgo4bKqIQYHZKI528p90bMSyTH7M2sXcGR+z
ADcs1Ald0acyJkI4IpzBs+YK+WVihQKuSh69YGKKru0xq0hONN8j2pgphVDS0hbk
bMzyxx1QHK9cRVAXFdiqeQ36U3f70enItxXvOYGwWGvD5v7bCpYuCA==
-----END RSA PRIVATE KEY-----
6 changes: 6 additions & 0 deletions tests/ssl/ca/gen-all-certs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -ex

./gen-server.sh
./gen-client.sh
./gen-localhost.sh
1 change: 1 addition & 0 deletions tests/ssl/ca/gen-client.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -ex

# Adapted from:
# http://nodejs.org/api/tls.html
Expand Down
3 changes: 2 additions & 1 deletion tests/ssl/ca/gen-localhost.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
set -ex

# Adapted from:
# http://nodejs.org/api/tls.html
Expand All @@ -18,4 +19,4 @@ openssl x509 -req \
-set_serial 0x`cat ca.srl` \
-passin 'pass:password' \
-out localhost.crt \
-days 1095
-days 3650
13 changes: 9 additions & 4 deletions tests/ssl/ca/gen-server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

set -ex
# fixes:
# Error: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small
# on Node > v10
Expand All @@ -8,6 +8,11 @@ openssl genrsa 4096 > server.key

openssl req -new -nodes -sha256 -key server.key -config server.cnf -out server.csr

openssl x509 -req -sha256 -in server.csr -CA ca.crt -CAkey ca.key -out server.crt

# password: password
openssl x509 -req \
-sha256 \
-in server.csr \
-CA ca.crt \
-CAkey ca.key \
-out server.crt \
-passin 'pass:password' \
-days 3650
24 changes: 12 additions & 12 deletions tests/ssl/ca/localhost.crt
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
-----BEGIN CERTIFICATE-----
MIIDLTCCApYCCQCt9iAWqkDJxDANBgkqhkiG9w0BAQsFADCBojELMAkGA1UEBhMC
MIIDLTCCApYCCQCt9iAWqkDJxzANBgkqhkiG9w0BAQUFADCBojELMAkGA1UEBhMC
VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMRAwDgYDVQQKEwdyZXF1
ZXN0MSYwJAYDVQQLEx1yZXF1ZXN0IENlcnRpZmljYXRlIEF1dGhvcml0eTESMBAG
A1UEAxMJcmVxdWVzdENBMSYwJAYJKoZIhvcNAQkBFhdtaWtlYWxAbWlrZWFscm9n
ZXJzLmNvbTAeFw0xODA3MDgxMTQ5MjlaFw0yMTA3MDcxMTQ5MjlaMIGOMQswCQYD
ZXJzLmNvbTAeFw0xODExMjIxNTIzMjVaFw0yODExMTkxNTIzMjVaMIGOMQswCQYD
VQQGEwJVUzELMAkGA1UECAwCQ0ExEDAOBgNVBAcMB09ha2xhbmQxEDAOBgNVBAoM
B3JlcXVlc3QxGjAYBgNVBAsMEXJlcXVlc3RAbG9jYWxob3N0MRIwEAYDVQQDDAls
b2NhbGhvc3QxHjAcBgkqhkiG9w0BCQEWD2RvLm5vdEBlbWFpbC5tZTCCASIwDQYJ
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAKoTEIRDVlcBLaEggfE4eosRFjLhc0sg
a3NlLC/67T6hAN2/xbH1yCQpvrq0Xgi5FMXFp0rkFqcLSOEQ4mQH/wFtbj5+IbTj
eZvv2d7G5J+3hY7ALCDoMlwb0ifX8w5qMwPaiGdk7l0Wp/M81IALyVyKrKwlOVqT
ti/2hmhQBHGVLITso/QaGJenCnJ7tkZ6nFYYps0b2sl863jHnmaeY/QYGdCH+Nqn
n6nyuRfLekjboUfRAIqMfxarwVRxBVg4N9YLvT+Qm0U4ZtCCuMXRaKC5YRp5sK/7
GSngACB3En3ndP71ry6sxwova3Yb4Qeei1S/JonIr+KDTlmko8SXtnkCAwEAATAN
BgkqhkiG9w0BAQsFAAOBgQCpn2KTeSNsI95wVwDaXS4zkb4FtsFdG4368Bt0tKSc
HUlv8OL+h+gJOSfap+0WbY/cBMzGym+mS8MZFXYpDEmknyuSv+Rqs3DEP5nkBZWb
HaaIv1UrUF6XHh/C6kToNXRjZQCKYu2TWiqeA1psdBZBMJPwnvKiG+FKr+fZUAEv
Ug==
KoZIhvcNAQEBBQADggEPADCCAQoCggEBAPZ8A1Kgccmg3o/SNiGSNyIv7jyEZCYE
oJgiu6kkENIykHIN9iL+cjaCjDIOg7BGM9/IeERyM/EIy4hXIFecjkt0Zc12p8OS
UN94MBzyCyaFlDWxoneP17FFBgMD0/qDbYAYgwRE308TFlnA4rbI0g3f5/Ft7bhj
dd18Sw0/p0RoIdr7FezM5chSW62AwJ/QHEmjZt/VXzs1ITMG1549r5T1fngw5x+G
eTG1HagM6/CMrtLk0nXTDRR469A0n0ZgdXdSBnN3igSyVIy9gaUGjrXhs2GImnvL
LqzgYUSxVIopI9T0umbKGtoVp79RIU+P59di0ybtiAI8P1CElj0bpT8CAwEAATAN
BgkqhkiG9w0BAQUFAAOBgQAeTesuuLfnlqqVE0sq6kl+Va2MnJJSvgHuadCaSnr3
EvieJYiE5uydesI7nSBTs9z873RBFlLdAXx/FyShRSnVB/WaNZP9lb97oyWeTj21
q0nTXHSZFOb9nRdtwyLmX9L6EO2KAbNSxmAdt8ZJd2FZNahHXDEiNtwemzNVlkw8
bQ==
-----END CERTIFICATE-----
26 changes: 13 additions & 13 deletions tests/ssl/ca/localhost.csr
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
MIIC9zCCAd8CAQAwgY4xCzAJBgNVBAYTAlVT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Dej9I2IZI3Ii/uPIRkJgSgmCK7qSQQ0jKQcg32Iv5yNoKMMg6DsEYz38h4
RHIz8QjLiFcgV5yOS3RlzXanw5JQ33gwHPILJoWUNbGid4/XsUUGAwPT+oNtgBiD
BETfTxMWWcDitsjSDd/n8W3tuGN13XxLDT+nRGgh2vsV7MzlyFJbrYDAn9AcSaNm
39VfOzUhMwbXnj2vlPV+eDDnH4Z5MbUdqAzr8Iyu0uTSddMNFHjr0DSfRmB1d1IG
c3eKBLJUjL2BpQaOteGzYYiae8surOBhRLFUiikj1PS6Zsoa2hWnv1EhT4/n12LT
Ju2IAjw/UISWPRulPwIDAQABoCMwIQYJKoZIhvcNAQkHMRQMEnBhc3N3b3JkIGNo
YWxsZW5nZTANBgkqhkiG9w0BAQsFAAOCAQEArDxFTCfg/ysXMYA9BOffqO4VCsw3
7/4DEZtqvNIbRB2zLkzcAOUq/kwPr0pQ8AX1YjotAMIONI1R1Gr4ttlbUfbtqfOH
zk7d+wfYUKrUlqGCD0E0EKNRtn76lJD3r5CQtLbeAd3d+b5bpsHVYErsAyrWqkOx
gRnYmAX3vLDoXFZwp0L3577MJLEzjnV+uPrJVtF4I4wDxU7qoaC5wYE8oExE+2MA
POYO+6GYWOPnIViVGnkbZXlRkBufD9cLcMhKVSo2nfNiFqZm1+nTcf9EC8ILdqtb
JkMcBHNBje6KTC3Ue2vJkKg61hbVoj/MoYo63UeXA1ACOjvfnE8cMP4pjw==
-----END CERTIFICATE REQUEST-----
50 changes: 25 additions & 25 deletions tests/ssl/ca/localhost.key
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAqhMQhENWVwEtoSCB8Th6ixEWMuFzSyBrc2UsL/rtPqEA3b/F
sfXIJCm+urReCLkUxcWnSuQWpwtI4RDiZAf/AW1uPn4htON5m+/Z3sbkn7eFjsAs
IOgyXBvSJ9fzDmozA9qIZ2TuXRan8zzUgAvJXIqsrCU5WpO2L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5b2ZAoGBAPwf1WmLSZYZaegVICco+17QIuvrD2jcy9w1Hk+B9F2zkyX2CV4g
jCQXuSXEnhEDX2wt6Rxti+F0JpC2WBrVBxuyE1kU+mOUaGDSvauyBjY4S8iOWnl7
IYR0jc1OlG0XBvEbAaHVWrET4aBcXE8eDF+6OKLLVDYUtzamcdc5ya7dAoGBAPpF
/CZHP/MX1c7wBTL04SSt+kLEwVir35PYeMSQA53uuZKIhg5KXioQj6fQst0KcsCo
nRzYAe6mXnHljsQMP+ffzCm4lWf5GdajcL0lDyQmC9EcKYlR+JsUBwK8V6remiEo
YJxXtUv0DRTlOOgragD/VcD2hRjBtsPzYvbuoCzLAoGBANoLFeAPa/Z5yBPEoWf8
k1huHKV3Rn5j5ZJuBeaw9wtKUEoWPAfBkjFsqty07Ba+mfnOwrmpK74xW2DvscaS
0XDsUrtJ3znbkWGbIBmq/qBJk5DBPBGvoU8SFcim2sp1jbVaq9Cv2Z0nGow7FEIA
NKddP7naqtuSktianf2KppepAoGBAPE6/dTjfkdQ5Rwmi8xW7qANNZifz4EpgUIf
OCC2c1YKIUKVZyllEyhWeDEX3x9hj8QVggKoTgx6vbPowVhEOmDEfSSFrzTdjMMv
HF6j1tlP9rni/EJJCWhowG0pnxKqp0NoiN6JR81i+iz22IgoOG+nrT9mHloDdaef
8/bxgOBLAoGBALMQ9GMCdm7wVOkPktz8enAkd2mt6+BHXtNgKaBvfWED7T+YEVtp
aw/0eSSnRh2RgnqVAw9HJOCGATecK/p/JrcTzbTYr1n7FzuXp7nX1eoi95sT5XLm
7b0/4EdL9dXGQP5PXxgMZY/Vbk3TD5fdUxam4QpA1opl+rEOYO+GhMFo
-----END RSA PRIVATE KEY-----
Loading

0 comments on commit 1befd90

Please sign in to comment.