-
-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
832a86b
commit 8c020f7
Showing
12 changed files
with
160 additions
and
3 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
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,4 @@ | ||
[mysqld] | ||
ssl-ca=/certs/ca.pem | ||
ssl-cert=/certs/server-cert.pem | ||
ssl-key=/certs/server-key.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,27 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIEpAIBAAKCAQEAwpyGiMeznjT96wCEya+3molal6VYobaCwqQpN4FznSwPZdHr | ||
piHv53rVsNgTjjGOTS3gEr/qXmVgs21f2rxfHHuWZKRZVv3p/SlXFX7eC909MfbW | ||
qlENLmVeb6jRZ8bmwX/JpAlGf5RA+j++wC2CV8ubVAOf4bBuru6v4/zvtZgRn+gr | ||
WUPCwUGoGMe70uTLBWq5JqO0M/iOEVEsUhHe2BMBDUPgHFoocV62J6t+sVcLBRWi | ||
ydeg4CuoccTpTJQpY1Q8BYU540QwQsxTqVCcSSDRKgwGAi+OJ8aFPsEJrz68/vVQ | ||
7zmcUywANtO8nrO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VrwAYckw4btO7OA8FDjHDHdQVw1dlN0/Xrx6mR3kZXxqpXO2RRT8MsA5vAx9 | ||
yqQKHscCgYBkxxkDef1TXqV6+sh5xXBezjcTytVfAGSWzgT0dvTjXUAyTMPpDMuL | ||
DSE7qxA5/HycR2X74nEzjzMYNWu+ELhYs+NSkouRmeFEsFyVaBlH87/mkhpSrm2Z | ||
LQxfz53VcMHtoW7WW1hE4XqImMilORbJUGfPE4iFsm6bATPD0ts/eA== | ||
-----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,17 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICsjCCAZoCCQDe1QK5Efu90jANBgkqhkiG9w0BAQsFADAbMQswCQYDVQQGEwJB | ||
VTEMMAoGA1UECAwDVklDMB4XDTE5MDkyOTEzMDI1OFoXDTI5MDgwNzEzMDI1OFow | ||
GzELMAkGA1UEBhMCQVUxDDAKBgNVBAgMA1ZJQzCCASIwDQYJKoZIhvcNAQEBBQAD | ||
ggEPADCCAQoCggEBAMKchojHs540/esAhMmvt5qJWpelWKG2gsKkKTeBc50sD2XR | ||
66Yh7+d61bDYE44xjk0t4BK/6l5lYLNtX9q8Xxx7lmSkWVb96f0pVxV+3gvdPTH2 | ||
1qpRDS5lXm+o0WfG5sF/yaQJRn+UQPo/vsAtglfLm1QDn+Gwbq7ur+P877WYEZ/o | ||
K1lDwsFBqBjHu9LkywVquSajtDP4jhFRLFIR3tgTAQ1D4BxaKHFetierfrFXCwUV | ||
osnXoOArqHHE6UyUKWNUPAWFOeNEMELMU6lQnEkg0SoMBgIvjifGhT7BCa8+vP71 | ||
UO85nFMsADbTvJ6ziyasKnXnwbppB3RnEj1JkX0CAwEAATANBgkqhkiG9w0BAQsF | ||
AAOCAQEAqCH1UN4wN6rMQw2DtdFb0XBKGb6TpHj+rGpsNimmAxYMhLb/09ua3Y33 | ||
OfRudl0Q5ZPZ0KQSQU/WoETyei44OLaSqfTPww6L53Mbf+qyla4e602b9/nWNe8n | ||
y0n9nL2s3u6rhCvFXxZiu813blw1GPd7/B5mfu+QEA/UhkiASMA5msr7fNIMzke9 | ||
5rUYjMBzvSuy/vYbiTrXmKpAu5h4Z14qO8EDZy6gMzi0VhsUwur3I/ApOMt18BKx | ||
rOagdnBFQ9XAde7wmkO7ODr3cj1yA7GmIMTWGwCaJh5F/RlsfCdT2jlWPXQ2T8Fn | ||
PYufwpqtHrvN2qw7bU7SiV5UuX1I3A== | ||
-----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----- | ||
MIIEpAIBAAKCAQEAyrlRmGvdcAH3kauP33FHlrt076rkBKwoDrj76RigKe7lT24n | ||
c24jJ/x/OE2furcekav5qPVRTDlzH3N1yQCZ26+PMnqNRX5TprxagNumO6DShS/o | ||
xfDBtGevYBU/vqanaVW5/UXD/sx6lOeG5bHNzi9VXx/twzHIM7I6q9/i1jS353xI | ||
dlUvottbfFYf8Oti3PpQ+xbY0y4vo9+//+0leS+hime4P3Y0nwGmKCprFBp7AHBW | ||
yC2ayJPL7YODpX18oLJJN1xUIdxrAcdThv5XqayWFfCAVxB3bn0mtCbgFwkeAULE | ||
1uI6RcBzGNo1r7E0mp3gPsiRagzKYUVEZJIcnwIDAQABAoIBAFwXy+V+Ot5DRoA6 | ||
e+V5xJfJGNo3u9YTjy8BAg9mTHxANpPa6rkZc4cawYCGYuWjgpOSmJwUtZX3E0Fa | ||
Zkulpj+ShW7dFYhYVxALyOF45w93g6tVlF03fgfCgn0XqhmmA69qbk+MffkmUxmK | ||
BFIcb+4WuqW4D375AoXZlaW204mTIlSJMEfb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+COOXSPZRywJ1+toYf+m1jGICw5ds5vWmHj1/5548K+btUoQ== | ||
-----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 @@ | ||
# from https://dev.mysql.com/doc/refman/8.0/en/creating-ssl-files-using-openssl.html | ||
|
||
# Create CA certificate | ||
openssl genrsa 2048 > ca-key.pem | ||
openssl req -new -x509 -nodes -days 3600 \ | ||
-key ca-key.pem -out ca.pem | ||
|
||
# Create server certificate, remove passphrase, and sign it | ||
# server-cert.pem = public key, server-key.pem = private key | ||
openssl req -newkey rsa:2048 -days 3600 \ | ||
-nodes -keyout server-key.pem -out server-req.pem | ||
openssl rsa -in server-key.pem -out server-key.pem | ||
openssl x509 -req -in server-req.pem -days 3600 \ | ||
-CA ca.pem -CAkey ca-key.pem -set_serial 01 -out server-cert.pem | ||
|
||
# Create client certificate, remove passphrase, and sign it | ||
# client-cert.pem = public key, client-key.pem = private key | ||
openssl req -newkey rsa:2048 -days 3600 \ | ||
-nodes -keyout client-key.pem -out client-req.pem | ||
openssl rsa -in client-key.pem -out client-key.pem | ||
openssl x509 -req -in client-req.pem -days 3600 \ | ||
-CA ca.pem -CAkey ca-key.pem -set_serial 01 -out client-cert.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,17 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICqjCCAZICAQEwDQYJKoZIhvcNAQEFBQAwGzELMAkGA1UEBhMCQVUxDDAKBgNV | ||
BAgMA1ZJQzAeFw0xOTA5MjkxMzAzMDdaFw0yOTA4MDcxMzAzMDdaMBsxCzAJBgNV | ||
BAYTAkFVMQwwCgYDVQQIDANWSUMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK | ||
AoIBAQC2NaLE0M9LNghfK0CK8WP4TsDP4oGtX+SxfF2NAT6BLNEaM/k7p8htbfoP | ||
zv6YBSKKO9vgcKPsC19BbHuf1bE3HK0le/OLtcE9sI7DgfdFOgcHV2/LF+2EGLdP | ||
Ccvde/Jtqsfo6RaQB8SF7tQ9FNc49UdHGry9CfNUVmi/HHyqKAoYGTFvkwsDvI6R | ||
UfBev6Q6gpAxVkD560sholY8IWxYwI2vqzxYKKYfyuJAcHeSLPON3b+E9XftP8hL | ||
CMXTBjtRKrxoFT5fVxg8yFWC/7bMosQD10NbqJpZAPxPBIf/3DDqADGNcA8FEMPN | ||
FxeAPmledv3fF+JPF/zrKI+qR1zfAgMBAAEwDQYJKoZIhvcNAQEFBQADggEBAHB3 | ||
D33d8i4j813Aut1Pxm7Ntk0JNDDq1smIDbxnY9MiOpVAEJ3nQkgbmN/vy/MhFE7m | ||
xnARgaiCOx7gYQDtTwKEAuSTyKJ5xsaS4O55ClPUEkzA8EiXyxgu1MiJQgZk7k8h | ||
uHaKjhX4dIRMDNcGWbrZBEBJMlbrHLco6tg2DwTSuF/nNwmZ4YU4xWsz8/aT+uSc | ||
qMPtWrOPRme6zfSKG/SPYreV1GA73Ema+Is9yE7buwPri+IWnzVdPStkEI8yn1S9 | ||
uYrZd1i630lcUFiYq+c9ETDkNgX3ldNH2wdsbJI1nkFh6SMi4y8DseyFo7HWMC3w | ||
suH0xMMEPpjyNeVfsMw= | ||
-----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----- | ||
MIIEpAIBAAKCAQEAtjWixNDPSzYIXytAivFj+E7Az+KBrV/ksXxdjQE+gSzRGjP5 | ||
O6fIbW36D87+mAUiijvb4H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tFZ/URhsyG49HsYdqJ/loMjgWhBWfsAvjQ+rZHGqTtxAXTdEUVYDlknd | ||
VMixAcumSdOAnA5eRAHbRNZEUe4C4BxKHFBL1gzeInMgu9UfGVziEUJtzy0gqqQk | ||
A/U88grC3knH9HNSqTIuR2RxAoGAfSyd2qqD3wMoBwq1u6YQ36jI//+7jwSqZ15h | ||
OqUQTd3Ey7h5Zh0aT5I1nuxES0BtNoryXSW4Eks+YoP5lBbFYet8cEMaccCyM/5H | ||
pB20pjS+KOJtAdbEbub9NfXFJ14h4jrsK7QKSzVNFJcWeS4KnKOlLiFfw7OfxUln | ||
NLmslgECgYAwyEUuJMmdC0bY4nyxZFFFmF2iQkVgamCvZOGJbUcsJ8B10mEd+QiO | ||
f9hzyveg6Fo49FI0uuy/l2/VWCBubrBuxe2nE3HEs5O2nfkAQ1W36Rol5ryaEykL | ||
cf03k1FsitGE89ogyoLiX9aEzER+3e/AHMyVraAby1gUtySheHlCNw== | ||
-----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,15 @@ | ||
-----BEGIN CERTIFICATE REQUEST----- | ||
MIICYDCCAUgCAQAwGzELMAkGA1UEBhMCQVUxDDAKBgNVBAgMA1ZJQzCCASIwDQYJ | ||
KoZIhvcNAQEBBQADggEPADCCAQoCggEBALY1osTQz0s2CF8rQIrxY/hOwM/iga1f | ||
5LF8XY0BPoEs0Roz+TunyG1t+g/O/pgFIoo72+Bwo+wLX0Fse5/VsTccrSV784u1 | ||
wT2wjsOB90U6BwdXb8sX7YQYt08Jy9178m2qx+jpFpAHxIXu1D0U1zj1R0cavL0J | ||
81RWaL8cfKooChgZMW+TCwO8jpFR8F6/pDqCkDFWQPnrSyGiVjwhbFjAja+rPFgo | ||
ph/K4kBwd5Is843dv4T1d+0/yEsIxdMGO1EqvGgVPl9XGDzIVYL/tsyixAPXQ1uo | ||
mlkA/E8Eh//cMOoAMY1wDwUQw80XF4A+aV52/d8X4k8X/Osoj6pHXN8CAwEAAaAA | ||
MA0GCSqGSIb3DQEBCwUAA4IBAQBVpcCRFnRT5IARzXdhGSxo+P9T8IxDqYltnvni | ||
fs2yLR9E8EEpypY11qzN/0HX42av0RTTrcCQvR+Bfud1TPLGYKA0oUhKlX8kN4XC | ||
E29QGS5RMd7UZLByaGSlKiHSzRuzAt1np4GYUEDoAX3UMxkf3gAgErJEBooSoGmK | ||
qAew16W68dOqzklUiNN9AzmCzbkpjveYtYYC+k5+oBnuU4o+0/rkY6fKI4WpMQ3K | ||
tbYIv51s9wa3vqkdzEY8pZWkfnGRAj+UxRg7yHM44ec2xMxcnyjWZZKEy6z32BoF | ||
rm794RVdobl5Lj6r5lZqpeMvrr9p3QOG5kxL5Q+bIrxJv7Fj | ||
-----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 @@ | ||
mysql --ssl-key=certs/client-key.pem --ssl-cert=certs/client-cert.pem -h 127.0.0.1 -P 3307 |