@@ -17,16 +17,17 @@ echo "Generate CA private key"
1717openssl genrsa 2048 > certs/ca.key
1818
1919echo " [ 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
3132echo " Generate CA certificate (self-signed)"
3233openssl req -days 365 -new -x509 -nodes -key certs/ca.key -out certs/ca.crt --config certs/ca.conf
0 commit comments