Skip to content

Commit 449afcd

Browse files
committed
[misc] add ssl
1 parent 6160308 commit 449afcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/generate-certs.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ echo "commonName = mariadb.example.com" > certs/ca.conf
2929
echo "emailAddress = admin@mariadb.example.com" > certs/ca.conf
3030

3131
echo "Generate CA certificate (self-signed)"
32-
openssl req -days 365 -new -x509 -nodes -key certs/ca.key -out certs/ca.crt --config ca.conf
32+
openssl req -days 365 -new -x509 -nodes -key certs/ca.key -out certs/ca.crt --config certs/ca.conf
3333

3434

3535

@@ -52,11 +52,11 @@ echo "subjectAltName = DNS: mariadb.example.com, IP: 127.0.0.1" >> certs/server.
5252

5353

5454
echo "Generating private key..."
55-
openssl req -newkey rsa:2048 -nodes -keyout certs/server.key -out certs/server.csr --config server.conf
55+
openssl req -newkey rsa:2048 -nodes -keyout certs/server.key -out certs/server.csr --config certs/server.conf
5656

5757

5858
echo "Generate the certificate for the server:"
59-
openssl x509 -req -days 365 -in server.csr -out certs/server.crt -CA certs/ca.crt -CAkey certs/ca.key -extensions req_ext -extfile server.conf
59+
openssl x509 -req -days 365 -in certs/server.csr -out certs/server.crt -CA certs/ca.crt -CAkey certs/ca.key -extensions req_ext -extfile certs/server.conf
6060

6161
# Set appropriate permissions
6262
chmod 600 certs/ca.key certs/server.key

0 commit comments

Comments
 (0)