-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick #16333 to 7.x: [Metricbeat] haproxy: Add support for stat…
…s exposed over HTTPS (#16387) * [Metricbeat] haproxy: Add support for stats exposed over HTTPS (#16333)
- Loading branch information
Showing
23 changed files
with
359 additions
and
49 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 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 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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
ARG HAPROXY_VERSION | ||
FROM haproxy:${HAPROXY_VERSION} | ||
RUN apt-get update && apt-get install -y netcat | ||
HEALTHCHECK --interval=1s --retries=90 CMD nc -z localhost 14567 | ||
|
||
HEALTHCHECK --interval=1s --retries=90 CMD nc -z localhost 14567 && nc -z localhost 14570 | ||
|
||
COPY ./haproxy.conf /usr/local/etc/haproxy/haproxy.cfg | ||
EXPOSE 14567 | ||
COPY ./certs/server.pem /usr/local/etc/haproxy/server.pem | ||
COPY ./certs/ca.crt /usr/local/etc/haproxy/ca.crt | ||
|
||
EXPOSE 14567 14568 14569 14570 |
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,30 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIFHjCCAwYCCQDyebXXoth88jANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJV | ||
UzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UE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OTfyiwDk0mV6irEYNhYyRQZGlz56TbfXYxDZbr+AKjb9F9D | ||
5BiHy+Mjo5DSPMCGREyDEPAL8wB/lMQ64tIt7+CK1ua+05FzSH2DhCsJEX3L+0qb | ||
bPy5ZDfP7hVrjQvM+BNFcfEXAznBEJ2+zWQ8hiBXwgZXCFclKJsfxRhm8lhSUPE2 | ||
k7DSWwmqVF1/Pvf8dY/QxESrHEdeHuB7QjPcvXPRZ9s01bZQJwFo92UwmkhnWJMg | ||
nl3imYhypiWWlGPM2qhMmVrCPdipaxvlxTGUXRhDIOW7XvQFkqyG+abZfWthHwWX | ||
ILURqpBgG4ZQu/S9Insx0XQbw/hKATdSgJ1RvZ7dFsaGG439hujv7Iw6VC7KS+JF | ||
BN9ecA42eNB6AJiC4wJdSEm5N+cI2+SLNpavaywNEnxWUOYSDFmFdedk6MxZh+SK | ||
zcY5Zpda1cqTZbZcWb5ewR20p9CrgRqsLYB5fxaOuGKF/mIyChezwYG6g5YvqHOm | ||
K+gq/MxpVCTIjx+pFT3Y0eTv3+S4+o/R9vS/K8MokGrBqkui78eqJylW8rWWqBBc | ||
QBSI6y7hEs9KaP84dj5PtO1YCSAbLV/MC0G0/sJVGn8PSdiKTp5uMHpoozgaW6+j | ||
LuWTqxnwHUNupqZ6DvO8VPHT | ||
-----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,51 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIJKgIBAAKCAgEAyCVvKURKlTznUegGQIL+GsbeuVvtsQg+Iu8Rl5WxZgVeNxM8 | ||
Ubw/Nk/Y3UOMu26jGBF4MtsGECqjboVE3xRaw4T1gA2F8LI9dgDWqQrkx1u/hfmb | ||
oVf6kzAaaXN0mNPIrqTRyulQD5++959/IQ0wMasWgQc0WfjkynT/Np9o8P5EJ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31dLpqc3bBuod | ||
Ut2YmdHRM4ilvUqovKIe8zcpMyIH+7BnAn2uyeIae39ctBycBL1ERT5pxN0Ikm28 | ||
bY3Ybtl96aQMU8oktuVvf+EXfFMVTfmVOcaDnrrh607D5FYQj1h2q7PZ/ZrneCof | ||
9pKywLcgWbnEeGGRIhYxH5wpcNZY8PuB+/0esw9IJ2Hh/GlL4fQ3NAxXPgww76+4 | ||
xcbgSQKCAQEAxejfFJ/cnC/4HFzOCwmnfAEi7duL5hffuPY35l57I9cvDWa1BaUH | ||
ArmVszdk0gPou4i55XMp8tfn8lSG/Ijy855JZBnY1Pl5WOwzeEM/fcQzcVy+R/aQ | ||
Sy8bOwZF2nY6NZ/qGIMDbdl1CgmUmUVFieNqkdhSRF7FwW5u8AzMK9K5cCQRUmRD | ||
fMbPG2Maaeh6jYOe7YvGbSXaiitbnbQ1d/uR7CiK1aiJrIDDzuW11/ItDFDsWihd | ||
XLofA9408uHSKwVtOH+xQ7KlITu8TCxAWTtdkKXcPUZoxNWz4CZ3ryM/GJc9cjka | ||
T2KYnski3BFC8wJSYZu53orVCdQv22nPsQKCAQEAvnq3p0weY7393nVc5OSKhnvA | ||
eyoFi7r+o9PeGqioR+U4I9ex0aZExjMoqavW8R6PpK3oeZm9lyNm6rm8unI/dfXw | ||
jgkJZ6DV4sedANBH3fR3v10NZnNv64DyVYZjhA8UJNFK2zDpW9pn5efFEWNTc4nh | ||
AsSoOXJxBJGS8MKg11jV1XP/+STMxf2X1D9lZJ0pqXmWN0oKxiT9PzDsHNXPwJR4 | ||
yyEk20M1qDZDDUQ8jQmCzUB6iz8RDfNLzVxQwB52jZXN/v3YYpOPUZ7wIcYaj8WV | ||
kuynr+nWVfdDJMbUFKa43h2cFMZk8akZfpahC/xI6qBnWA+IfyKOiEJcxBb7ww== | ||
-----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,30 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIFHjCCAwYCCQDyebXXoth88jANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJV | ||
UzETMBEGA1UECAwKQ2FsaWZvcm5pYTEWMBQGA1UEBwwNU2FuIEZyYW5jaXNjbzEV | ||
MBMGA1UEAwwMY2FAbG9jYWxob3N0MB4XDTIwMDIxNDE1MzAzOVoXDTMwMDIxMTE1 | ||
MzAzOVowUTELMAkGA1UEBhMCVVMxEzARBgNVBAgMCkNhbGlmb3JuaWExFjAUBgNV | ||
BAcMDVNhbiBGcmFuY2lzY28xFTATBgNVBAMMDGNhQGxvY2FsaG9zdDCCAiIwDQYJ | ||
KoZIhvcNAQEBBQADggIPADCCAgoCggIBAMglbylESpU851HoBkCC/hrG3rlb7bEI | ||
PiLvEZeVsWYFXjcTPFG8PzZP2N1DjLtuoxgReDLbBhAqo26FRN8UWsOE9YANhfCy | ||
PXYA1qkK5Mdbv4X5m6FX+pMwGmlzdJjTyK6k0crpUA+fvveffyENMDGrFoEHNFn4 | ||
5Mp0/zafaPD+RCd+y48qUFeBkM1JKkSD6OV4MnZIZi8ttQIzoB5JoL6U6MOE/rpe | ||
xjUc4OQefTJ9Y3QkhUyAn5TB0VpdEZzgp4VA5NO32uusobWA6a1KyVAtHqfSELG2 | ||
4cPswjWSCXeglMvGbRWCBtyH/9vQ+RyhlBPclTUnBOTHRJSk7DbELCqFRNpASPdK | ||
oH20a/0MM5gSVVfkdxp+VZC60RxjkGXSMwMF0/RGE7UgrwLIfwwzN1Op7BYqB/RV | ||
433FBE0o3YRlSky8+t1/p0+mkLIoaOM4HCtmAthJ2L1B3X8+mAvC65nbkpOnoDQ6 | ||
+r2FKTqmZOB0KDABrUnW9/Fgf6+vQlgH+cL01f9uhZqyyaoVL5KqhWqiAyZRK0/i | ||
qMBR8ezZvGrfBE5jTwFs5dIOYKTDGG2UQQjRLV5zSo6n2P9qSEBCO01n+5A1AaZ+ | ||
xxjRFDAEDvs8M4f6X47E/aKSvKbai9GayHKb2U/rDqIy5tEAKPa11xjdVAUi7LBt | ||
HLkMYHL6a/zlAgMBAAEwDQYJKoZIhvcNAQELBQADggIBAIncpkUN5oWGDCmF912u | ||
JS9uJYonmcjCwz5j6OTfyiwDk0mV6irEYNhYyRQZGlz56TbfXYxDZbr+AKjb9F9D | ||
5BiHy+Mjo5DSPMCGREyDEPAL8wB/lMQ64tIt7+CK1ua+05FzSH2DhCsJEX3L+0qb | ||
bPy5ZDfP7hVrjQvM+BNFcfEXAznBEJ2+zWQ8hiBXwgZXCFclKJsfxRhm8lhSUPE2 | ||
k7DSWwmqVF1/Pvf8dY/QxESrHEdeHuB7QjPcvXPRZ9s01bZQJwFo92UwmkhnWJMg | ||
nl3imYhypiWWlGPM2qhMmVrCPdipaxvlxTGUXRhDIOW7XvQFkqyG+abZfWthHwWX | ||
ILURqpBgG4ZQu/S9Insx0XQbw/hKATdSgJ1RvZ7dFsaGG439hujv7Iw6VC7KS+JF | ||
BN9ecA42eNB6AJiC4wJdSEm5N+cI2+SLNpavaywNEnxWUOYSDFmFdedk6MxZh+SK | ||
zcY5Zpda1cqTZbZcWb5ewR20p9CrgRqsLYB5fxaOuGKF/mIyChezwYG6g5YvqHOm | ||
K+gq/MxpVCTIjx+pFT3Y0eTv3+S4+o/R9vS/K8MokGrBqkui78eqJylW8rWWqBBc | ||
QBSI6y7hEs9KaP84dj5PtO1YCSAbLV/MC0G0/sJVGn8PSdiKTp5uMHpoozgaW6+j | ||
LuWTqxnwHUNupqZ6DvO8VPHT | ||
-----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,22 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDjzCCAXcCAQIwDQYJKoZIhvcN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||
OVUiFjcqYlDcL8Dqi60EgjLewa90+k7eTmEj7Z8i4IwJL9pSXcfCpB5M0ZIZgdsa | ||
nGITtg4bZJywAYJzKlgrql1oYecNfUAr8ltXXXbBb1C3WBsVBlJghbp3OjFur3RY | ||
3Y9E81l4lScP2YcPrFEo2tJvetEOPjg78h0WmzrmjPzRCc0CUWvA+/45GL7fon4A | ||
IDll | ||
-----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,11 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIIBjTCB9wIBADBOMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEW | ||
MBQGA1UEBwwNU2FuIEZyYW5jaXNjbzESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0G | ||
CSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1Z/14QWPPk3h06hFIrP8eJpCCSG2i9gLQ | ||
5Oo3IW3G8CZFf3JepMrJcV4BeXdv0FnddkMVG0CMs5L9eQ2oARK7VkiZmLV9VU9W | ||
/dEvgkTtmQ42+25Z83WAUnqI0QqRxHw1n54pgrhXy0kmaQ2h5uFmFDpOWdpFBRII | ||
ktODPWoZIwIDAQABoAAwDQYJKoZIhvcNAQELBQADgYEADftPLHJCElz0m4dMiI4V | ||
Db3jC6X5dtEB2QE0kiGmkbvYL+8YOBgag7bC/6FvniFrc+9ntrqQZNvWycfy/7Mg | ||
GY+tYm1meFV02dbR+LafNfyNX9ztjDo1TNJgBJooFlxsM5weL9oSrmlK5BDDLEoz | ||
JYBXa0PU7BRMKxOAfE2Lqmc= | ||
-----END CERTIFICATE REQUEST----- |
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,15 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIICXAIBAAKBgQC1Z/14QWPPk3h06hFIrP8eJpCCSG2i9gLQ5Oo3IW3G8CZFf3Je | ||
pMrJcV4BeXdv0FnddkMVG0CMs5L9eQ2oARK7VkiZmLV9VU9W/dEvgkTtmQ42+25Z | ||
83WAUnqI0QqRxHw1n54pgrhXy0kmaQ2h5uFmFDpOWdpFBRIIktODPWoZIwIDAQAB | ||
AoGARub5M9pi94vNJe0iikRLhm5ORw2mBG6hFSKTxK6FKJ9OZhV1Dzbbp7Zupqbi | ||
HsrRhPSnLYW0SgoZ5oY85zBcMEHxC7HCeH0rhmZkGTgD+2x/0oDXOuH/kmTegCh5 | ||
O8hShwIBSULIg99VH8JOejBj82Wpf5Y3VqaGVjSNWo6HPdkCQQDeznoKrIk3hzpq | ||
+7YaXJs8lXbGZ6xz4WpS4pp23Xrdsdiec/EwUnpDKc9CDTVvYm6fawVRf6rA3oYp | ||
3wFA9h/NAkEA0G6QTPs/xo168vj6MwQ4kk7D8DWF5ja6CbLYU05lutK5n/0p62ul | ||
OesUhF/kjsfqf2yuOefXV4zMv15vQh/MrwJAcfDvkoPXjFEYe9uLrgGL1bitzBr6 | ||
oyw0vnxp972d9r/bgnTSdB7JrY01E5dDq1mQLvCBAMOkJAvoWoNT1c/IRQJBAI4C | ||
hrasiKtTQe3BzVZtDc5BdCZ5kR1lNCPfgpxf0dgUMvzalHEeCpkHnhcC7sqJUzA2 | ||
cA5r88Bm4imQweUfnWkCQECZa3sHls3tNtFbEQ1p8JOb6iRLAKTe0pEhfhEAkVGA | ||
zVghjTIOAB8bBjwqa7hLl2G31tanpdMfySyxDKyecpc= | ||
-----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,22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TS3UX5aXuJI2VfafxnLsP9XCNeqzFFuomAu6Mq93M9yHbBtBFJkkm+nL/z | ||
OVUiFjcqYlDcL8Dqi60EgjLewa90+k7eTmEj7Z8i4IwJL9pSXcfCpB5M0ZIZgdsa | ||
nGITtg4bZJywAYJzKlgrql1oYecNfUAr8ltXXXbBb1C3WBsVBlJghbp3OjFur3RY | ||
3Y9E81l4lScP2YcPrFEo2tJvetEOPjg78h0WmzrmjPzRCc0CUWvA+/45GL7fon4A | ||
IDll | ||
-----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,22 @@ | ||
#!/bin/bash | ||
|
||
export CA_SUBJECT='/C=US/ST=California/L=San Francisco/CN=ca@localhost' | ||
export SERVER_SUBJECT='/C=US/ST=California/L=San Francisco/CN=localhost' | ||
export CLIENT_SUBJECT='/C=US/ST=California/L=San Francisco/CN=localhost' | ||
|
||
# certificate authority creation | ||
openssl genrsa -out ca.key 4096 | ||
openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj "$CA_SUBJECT" | ||
openssl x509 -in ca.crt -out ca.pem -outform PEM | ||
|
||
# server certificate creation | ||
openssl genrsa -out server.key 1024 | ||
openssl req -new -key server.key -out server.csr -subj "$SERVER_SUBJECT" | ||
openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt | ||
cat server.crt server.key > server.pem | ||
|
||
# client certificate creation | ||
openssl genrsa -out client.key 1024 | ||
openssl req -new -key client.key -out client.csr -subj "$CLIENT_SUBJECT" | ||
openssl x509 -req -days 3650 -in client.csr -CA ca.crt -CAkey ca.key -set_serial 02 -out client.crt | ||
openssl x509 -in client.crt -out client.pem -outform PEM |
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,22 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDjzCCAXcCAQEwDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCVVMxEzARBgNV | ||
BAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xFTATBgNVBAMM | ||
DGNhQGxvY2FsaG9zdDAeFw0yMDAyMTQxNTMwMzlaFw0zMDAyMTExNTMwMzlaME4x | ||
CzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4g | ||
RnJhbmNpc2NvMRIwEAYDVQQDDAlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQAD | ||
gY0AMIGJAoGBAKXBZav38p8UvmpEwzdKetg+oX+7mjmeM+vxOklSj+tl8hfOp8S1 | ||
48Q2DE08b0x/ZnuyitFPO3mG24+bX1n2ZmGwN3vyVDSV8yL3ph+SJl+gum8ttqoY | ||
VkFGGKQKnAs2BdBf3dxxdpNagt6p48HSYNWYHO4soste+R49r6UCZoN5AgMBAAEw | ||
DQYJKoZIhvcNAQEFBQADggIBAKdbjIBJcQCVSFwvLL17jOcqlXp1y/oXemRFrctT | ||
w/1sJxDnkLwa/ypX7s0Nj0YFnmm+F8vBg1y6LpxGR+etlgx2rmwXxNuSlb7ZGmo6 | ||
+eFOIJcF1/9EX2nRfW305+Poa51wO8i9kouyIUxAXymLeKGkzZbwh3VRyUSaPPSG | ||
vL94OPzSwyF9sJVzvx36O5b5wQ/EN688y8ZqxOABt6XbfmmwFAVhSVBIv9ak7vao | ||
O8POzMLtXmaplN08N+xI1HxMTVa/FLmNnsTHSeCbQEMkhATRwt0KRud6Mz/B/MaZ | ||
K5Cumzsn26vCC2Tu59vbH0mcZf8PaSLrfkFR6pJCBzWn0dL4jse+MWy/X+LhvwZi | ||
xm9JkNhTNTNVZmoyF+tYZ27YH7VFxAeLKk0PKP8ywkzVhAnKAYOV/J7tmwUUCnXU | ||
RxuIUC4kKDnzi3HLftDXNFpxT1eKFwQ4oRuHqqZeu1bMgo6XNb3GV0kpT5QGzbtO | ||
vJysh3KcgMhVmGMwStMuWKtAiFPF2FSVX56/q6NQh0yJ9AVu3b4UnVIq/Ir/+yDD | ||
lgEq+bac8buaGe3ewwwm8HhuCmCqPv0+kZMYGZjzzJ4RZKXhiWUroNhDmSZO5TEh | ||
B+NOlp0F2C1fLhDRZOwY1kYiHYCMm2+tH5VEimbqa+DHko2k8oCsVeh8+pt2sebl | ||
/s7w | ||
-----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,11 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIIBjTCB9wIBADBOMQswCQYDVQQGEwJVUzETMBEGA1UECAwKQ2FsaWZvcm5pYTEW | ||
MBQGA1UEBwwNU2FuIEZyYW5jaXNjbzESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0G | ||
CSqGSIb3DQEBAQUAA4GNADCBiQKBgQClwWWr9/KfFL5qRMM3SnrYPqF/u5o5njPr | ||
8TpJUo/rZfIXzqfEtePENgxNPG9Mf2Z7sorRTzt5htuPm19Z9mZhsDd78lQ0lfMi | ||
96YfkiZfoLpvLbaqGFZBRhikCpwLNgXQX93ccXaTWoLeqePB0mDVmBzuLKLLXvke | ||
Pa+lAmaDeQIDAQABoAAwDQYJKoZIhvcNAQELBQADgYEAjlJJcJsKt3Yg4nSGPY2H | ||
P0KHydW/vmks6GAON2WtAGNjwKN1QTAO5LOMeY5PcKGiw6ImfaSUz52ag4Bg2pqm | ||
yjnHqUtK/RQuFM8wHjNmjDZDcXb3vx6nW8J8tL2ve2lXrWxBD1oCcUWPT3H7QwR1 | ||
+ml6RdZMbHtbHLGqc4gg2q8= | ||
-----END CERTIFICATE REQUEST----- |
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,15 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIICXQIBAAKBgQClwWWr9/KfFL5qRMM3SnrYPqF/u5o5njPr8TpJUo/rZfIXzqfE | ||
tePENgxNPG9Mf2Z7sorRTzt5htuPm19Z9mZhsDd78lQ0lfMi96YfkiZfoLpvLbaq | ||
GFZBRhikCpwLNgXQX93ccXaTWoLeqePB0mDVmBzuLKLLXvkePa+lAmaDeQIDAQAB | ||
AoGAAI3L5C447lUoabx/FoE2NeDHs2CSHF0t+TzeH/6ZooS9sVysbNjawP4ZPmzU | ||
RmIqmoE3O4nTPg24UBuJzwgmwW1vq5wZ0jEPYNDLSFXv3Qr5UPEH9zVc5TfDGn9h | ||
k7klB5aAJeLposcTXwJUW/xAg8M61SSzPg5K14aXWWAV8oECQQDVMGzhF+8HJYpd | ||
rY85IeDT6bTFGV4XsxsEFYjRU8y+yYOqGKGtYYjYMFh9TCYWRxq9gzIslkrYLI1z | ||
TZnFc8PxAkEAxwqDD5AYG5R2gCOpztlEiu84P89IHJIa9/4ggIA7SMQ14VSO3AUJ | ||
rWZME50VwoeYFYVtDstTezqo1Qy/6r6gCQJAQ2eRNUYs9BSBgAbtHsJAZKAi4KKZ | ||
pmKhqxPn809MkBIEyBYLoFcTPk9i2xLlg+utX7gIeCJ4vYqwmoExmkV08QJBAL5A | ||
cwQGNLTwFNDoxeAc1yKCBF8hz4jXswWGmCSb7Y7hVasbey4ddqGTHXbF+M2ndBxm | ||
G9c/TH2GlWiHtk44hZkCQQDCbLT0uFlZxpN5OTAq2a58vmwDcJ2XjXdF+jAXmkbE | ||
gYel1LbxpHM/uh81J+5wO89zYZd/pn9J8IFn6IlvrzyF | ||
-----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,37 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIIDjzCCAXcCAQEwDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCVVMxEzARBgNV | ||
BAgMCkNhbGlmb3JuaWExFjAUBgNVBAcMDVNhbiBGcmFuY2lzY28xFTATBgNVBAMM | ||
DGNhQGxvY2FsaG9zdDAeFw0yMDAyMTQxNTMwMzlaFw0zMDAyMTExNTMwMzlaME4x | ||
CzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRYwFAYDVQQHDA1TYW4g | ||
RnJhbmNpc2NvMRIwEAYDVQQDDAlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQAD | ||
gY0AMIGJAoGBAKXBZav38p8UvmpEwzdKetg+oX+7mjmeM+vxOklSj+tl8hfOp8S1 | ||
48Q2DE08b0x/ZnuyitFPO3mG24+bX1n2ZmGwN3vyVDSV8yL3ph+SJl+gum8ttqoY | ||
VkFGGKQKnAs2BdBf3dxxdpNagt6p48HSYNWYHO4soste+R49r6UCZoN5AgMBAAEw | ||
DQYJKoZIhvcNAQEFBQADggIBAKdbjIBJcQCVSFwvLL17jOcqlXp1y/oXemRFrctT | ||
w/1sJxDnkLwa/ypX7s0Nj0YFnmm+F8vBg1y6LpxGR+etlgx2rmwXxNuSlb7ZGmo6 | ||
+eFOIJcF1/9EX2nRfW305+Poa51wO8i9kouyIUxAXymLeKGkzZbwh3VRyUSaPPSG | ||
vL94OPzSwyF9sJVzvx36O5b5wQ/EN688y8ZqxOABt6XbfmmwFAVhSVBIv9ak7vao | ||
O8POzMLtXmaplN08N+xI1HxMTVa/FLmNnsTHSeCbQEMkhATRwt0KRud6Mz/B/MaZ | ||
K5Cumzsn26vCC2Tu59vbH0mcZf8PaSLrfkFR6pJC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i2xLlg+utX7gIeCJ4vYqwmoExmkV08QJBAL5A | ||
cwQGNLTwFNDoxeAc1yKCBF8hz4jXswWGmCSb7Y7hVasbey4ddqGTHXbF+M2ndBxm | ||
G9c/TH2GlWiHtk44hZkCQQDCbLT0uFlZxpN5OTAq2a58vmwDcJ2XjXdF+jAXmkbE | ||
gYel1LbxpHM/uh81J+5wO89zYZd/pn9J8IFn6IlvrzyF | ||
-----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
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 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
Oops, something went wrong.