Skip to content

Commit

Permalink
Replace certs with a 20 year expiry (elastic#14427) (elastic#14429)
Browse files Browse the repository at this point in the history
Backports the following commits to 7.x:
 - Replace certs with a 20 year expiry  (elastic#14427)
  • Loading branch information
ycombinator authored and kvch committed Nov 12, 2019
1 parent f87d548 commit 58680e7
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 19 deletions.
33 changes: 21 additions & 12 deletions heartbeat/monitors/active/http/testdata/client_cert.pem
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
-----BEGIN CERTIFICATE-----
MIICGzCCAXygAwIBAgIRANIf32fETNS13JB39JYszmwwCgYIKoZIzj0EAwQwEjEQ
MA4GA1UEChMHQWNtZSBDbzAeFw0xODExMDgwMzIxNDlaFw0xOTExMDgwMzIxNDla
MBIxEDAOBgNVBAoTB0FjbWUgQ28wgZswEAYHKoZIzj0CAQYFK4EEACMDgYYABAE+
n/OJoo7jvetm8zR4lAX2s99fxWF/LiOR1/qTPQgLmLYVUZq1yTZB027GtJGWAqph
kY/n0oNdxS4N9d2JPoaXMgHMGZAXl0A85Q3D5k0xKG/jwaEasTIbTe6UKHed2Zgk
CtEqutG9KwmnqAHCtlia14mgcERpO1eT0A7NRcdtNlcjlKNwMG4wDgYDVR0PAQH/
BAQDAgKkMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAPBgNVHRMBAf8E
BTADAQH/MCwGA1UdEQQlMCOCCWxvY2FsaG9zdIEWbm9zdWNoYWRkckBleGFtcGxl
Lm5ldDAKBggqhkjOPQQDBAOBjAAwgYgCQgDvHj4Xt5TMqhR4Uavmfa0uOio0FZxL
vGnk3aLj5koJyrQNynntHBcCZ+sPb14J08FWk0j4GPOGroMVud/XTX1BZgJCAc3k
0p+X1r+lt1hkSGrumTY5NRWIGIvJ0gy1AhuZJzXYoPRRdPgnM04vBWniOLHDhmsX
ExbWSt0EY2IiOJc/1GNO
MIID0TCCArmgAwIBAgIUFjN0Dgop+G0j5ZgvXM+ppqBG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iKLtOWJsi9
ktXiNStyktadUe7DekvhKIkOsLXcEIO2eim+grDSNfP8G3hdpw2aK8GgwpwEJapJ
GArm3tpQqSwywS7/5HKLNPQ/3Zpc5Mg+qrYbkVnFtu8ZKsOXrBkmme5TfbjogsO3
y8LGMFfyeLi0R74tGuO+VDlHxwHFXOax1yRje+7ld7Icq1az3I3BPq9sCpqz4oA3
PgrftqCrMpMK15vnWJ1er2Rz1bb1
-----END CERTIFICATE-----
35 changes: 28 additions & 7 deletions heartbeat/monitors/active/http/testdata/client_key.pem
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
-----BEGIN EC PRIVATE KEY-----
MIHcAgEBBEIB1YnGgQ42OFGz1rOFlmT97JB52b9/2h1dj85QaBLxX6isSNgnS7yC
VQKAQCudJz+UpqiTNZBQK0goqbD/O47lswagBwYFK4EEACOhgYkDgYYABAE+n/OJ
oo7jvetm8zR4lAX2s99fxWF/LiOR1/qTPQgLmLYVUZq1yTZB027GtJGWAqphkY/n
0oNdxS4N9d2JPoaXMgHMGZAXl0A85Q3D5k0xKG/jwaEasTIbTe6UKHed2ZgkCtEq
utG9KwmnqAHCtlia14mgcERpO1eT0A7NRcdtNlcjlA==
-----END EC PRIVATE KEY-----
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDh+dXMpyghQax9
0vZNVig+zHx8c/eRSxj+C2WiFKmZoe/wIVtVhEqy1SVruKhqhzkKcnHH0Xr/rttN
/Um7hvA1eNpVlRk/FIKyuVFgD5eCvxDsA3GI1Z25Qy0k0pH7zpjgCqHp72PaR9Zt
//hDk4dHNPgIffGbddOaKqhLAvEgkRqJZqKYIg/RSdYLdCGpzOafYKr9lcvvPrAM
DN8DNrOBXIoSHGBv1FYvlsasy8rG0m0UhrVHkvtv4Z4dN/0oOaNspPXYtjqhDdH3
zb6ypHRlvdJ2oSRMqcfVAyhUXnJ4tS6jmHW1VLoZ0zV7vJZLx/HY77wD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NHxSo2ZX95Yk7AbeeECgYEA96Scm3nHmozoknkmCaAP
hed7qA/9aTyqHVQDFulmRnHS8nXGUOWS+WEIOxxx8eI9j2qYsX0QOphwmz6Ijs9F
zbwL4kutUOF8PdHdCgTht+z5SR1oAjT/Joz5BlekVh1rhkDMLeeZWe/VO7ochabi
ORVoeRbPyJN9mX8JkQ+/7X8=
-----END PRIVATE KEY-----
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openssl req -x509 -sha256 -nodes -days 7300 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt

0 comments on commit 58680e7

Please sign in to comment.