Skip to content

Commit b9b98d9

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

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/generate-certs.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ echo "Generate CA private key"
1717
openssl genrsa 2048 > certs/ca.key
1818

1919
echo "[ req ]" > certs/ca.conf
20-
echo "prompt = no" > certs/ca.conf
21-
echo "distinguished_name = req_distinguished_name" > certs/ca.conf
22-
echo "[ req_distinguished_name ]" > certs/ca.conf
23-
echo "countryName = FR" > certs/ca.conf
24-
echo "stateOrProvinceName = Loire-atlantique" > certs/ca.conf
25-
echo "localityName = Nantes" > certs/ca.conf
26-
echo "organizationName = Home" > certs/ca.conf
27-
echo "organizationalUnitName = Lab" > certs/ca.conf
28-
echo "commonName = mariadb.example.com" > certs/ca.conf
29-
echo "emailAddress = admin@mariadb.example.com" > certs/ca.conf
20+
echo "prompt = no" >> certs/ca.conf
21+
echo "distinguished_name = req_distinguished_name" >> certs/ca.conf
22+
echo "" >> certs/ca.conf
23+
echo "[ req_distinguished_name ]" >> certs/ca.conf
24+
echo "countryName = FR" >> certs/ca.conf
25+
echo "stateOrProvinceName = Normandie" >> certs/ca.conf
26+
echo "localityName = Caen" >> certs/ca.conf
27+
echo "organizationName = Home" >> certs/ca.conf
28+
echo "organizationalUnitName = Lab" >> certs/ca.conf
29+
echo "commonName = mariadb.example.com" >> certs/ca.conf
30+
echo "emailAddress = admin@mariadb.example.com" >> certs/ca.conf
3031

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

0 commit comments

Comments
 (0)