Skip to content

Commit

Permalink
test(localhost cert): Extend validity to year 2121
Browse files Browse the repository at this point in the history
  • Loading branch information
amithm7 committed Dec 6, 2021
1 parent 5aa2c4c commit 531f9a2
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 43 deletions.
5 changes: 5 additions & 0 deletions test/data/tls/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Certificates in this directory expire in year 2121.

Generated using instructions from this gist
- https://gist.github.com/cecilemuller/9492b848eb8fe46d462abeb26656c4f8
- https://archive.ph/1i2g8
36 changes: 19 additions & 17 deletions test/data/tls/dns.rethinkdns.localhost.crt
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
-----BEGIN CERTIFICATE-----
MIIDHjCCAgagAwIBAgIUJBxZMgZfqRNPGo+6LHg/xczz0i8wDQYJKoZIhvcNAQEL
BQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MB4XDTIxMTIwNjA1MDAyNloXDTIyMDEw
NTA1MDAyNlowFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0BAQEF
AAOCAQ8AMIIBCgKCAQEAqzHRt5cDisxuOy7CyTRLI2+FeXkNxH7hQEwRA5fRWObD
pQ0h0x61PzaJDSpuiGoDT7ET+JJl+ZQEcwXYMGbSP2T6V2aOnL2RXne3Lqc486jt
g0ZAlwIU5pWcrojHg7KNkfX0x7Fx/qvBhrJdrE3u7BaL91JnPwFIJLgKxTfQzF3/
v3IwWag7Yl1oPiSFLnMlXKsyg1P6xIt5Ix6f+7cD/Z/sKD2S+xBzHIc2kATkdL0I
07TkV6WJlfMtjVKuGGB3P8XDRQWqXWMQWS9Rvn1L6FFoRcNs3cxkHX6nRk3KaitI
GTEGlMOMsE6y+SwdZfa79162RtCogQecU8lMcw1JYQIDAQABo2gwZjBCBgNVHREE
OzA5gjdkbnMucmV0aGlua2Rucy5sb2NhbGhvc3QgRE5TOiouZG5zLnJldGhpbmtk
bnMubG9jYWxob3N0MAsGA1U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gNVHRMEAjAAMAsGA1UdDwQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcD
ATA/BgNVHREEODA2ghhkbnMucmV0aGlua2Rucy5sb2NhbGhvc3SCGiouZG5zLnJl
dGhpbmtkbnMubG9jYWxob3N0MA0GCSqGSIb3DQEBCwUAA4IBAQBD7IrH/tLti9Vr
TDLd1Hi7bpszTwDhdNcQCxi1fqOF0I+mMyvD8EOLCeqx0USCcW1i3wl6/2rLQjlk
e0F72Sy+d0yFx+hQIjgUW9pYhHZTzrcmgLrzF0e5bH+TPIvllqAjuh1qccLr8epy
3HlMF4T67y4xY7XjvKCciMsU9HIf696hqH3yhg20GRT4emMQ0RdJDg8wxigt/Pcd
NPgaYbKpgeePvqDQiBNKGMEJK4QFffFdhFeqvJ1pw9/RQF31/5uPGevBBgnoagV/
S364RPY/7pZP4IkeH+MNHAdViiwuUnkpKVJu58WcOyy8GojfvmrB78iTjZv1heHd
ut62VE4H
-----END CERTIFICATE-----
52 changes: 26 additions & 26 deletions test/data/tls/dns.rethinkdns.localhost.key
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQCrMdG3lwOKzG47
LsLJNEsjb4V5eQ3EfuFATBEDl9FY5sOlDSHTHrU/NokNKm6IagNPsRP4kmX5lARz
BdgwZtI/ZPpXZo6cvZFed7cupzjzqO2DRkCXAhTmlZyuiMeDso2R9fTHsXH+q8GG
sl2sTe7sFov3Umc/AUgkuArFN9DMXf+/cjBZqDtiXWg+JIUucyVcqzKDU/rEi3kj
Hp/7twP9n+woPZL7EHMchzaQBOR0vQjTtORXpYmV8y2NUq4YYHc/xcNFBapdYxBZ
L1G+fUvoUWhFw2zdzGQdfqdGTcpqK0gZMQaUw4ywTrL5LB1l9rv3XrZG0KiBB5xT
yUxzDUlhAgMBAAECggEBAJCE3RLMJExe6cuCXSN3xtqiQZ5bR/kSV1ttG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9LYZGwyYwZFb2qNo7
tKw6VtltDukdJFZdp9bQ9r02d9J7p5ZoMi2y/hXNKeUauxOIuaHc1ddUg343iMpG
EoqolWd5QDcRKN49g+P2o4hCmGc2Ck2HSKAOigFf4tbzswX/8KKxTbhJVp2choYk
jKDZwTgMRY8CgYEA1c7kYkRW599aX5cgNDvke29eq+hmuKLkcTa3YRtFr96x2lqj
PVRBPtBDITtDc/de7NUMpQS8zbRNCx6rgBtRgiJJnQcbTP+rUpozXBFp4YDbxMxU
Kn4TShexF5wKM7iYJmyEv//ALGyDiyCczorC8Lzkt0uxN6rgTX1nx++w9dsCgYEA
sNEW0oAElDnII22utcOLLOe88Geb0EP3+Px43gPoXjTXjzu30Y8uWcE+ebTwuGA4
mYuaoHe7E3558F5E/kN5H4iE3tjoXp6ltBeIOFhReGk0/xvF8Fdk3tmGFHyn1Pm7
B6N+Y/BkUtqAScyr//SpWhpNghw1EgQIJXkNbJRqYdMCgYBpfGTalaUlGpiGV/6M
9m21XNoEZpK114EjBRO2MflXLgZbPGiyIouVjzTq9L/CnsdjvDvysqBE6vYINCrJ
O8t/jQtbF9zkzbBFmjzX7C3/GppsJeAboHeQoNmugum76zZ1Ryu7HxgA9uX1VxFA
8FIO/QJpXELq1G8eC0uw9FRDkg==
-----END PRIVATE KEY-----
8 changes: 8 additions & 0 deletions test/data/tls/domains.ext
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = dns.rethinkdns.localhost
DNS.2 = *.dns.rethinkdns.localhost

0 comments on commit 531f9a2

Please sign in to comment.