During execution, you need to enter the following information:
1 2 3 4 5 6 7
Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Beijing Locality Name (eg, city) []:Beijing Organization Name (eg, company) [Internet Widgits Pty Ltd]:cuckooM Organizational Unit Name (eg, section) []:cuckooM Common Name (e.g. server FQDN or YOUR name) []:127.0.0.1 Email Address []:
Note: “Common Name” should be written as the server’s IP address or domain name.
Since this is self-signed, the server certificate can be used as the trusted root certificate
1
cp server.crt root.crt
2. Generate Three Files for the Client Side
root.crt (Trusted root certificate, already generated on the server side)
client.crt (Client certificate)
client.key (Private key)
Generate Private Key (requires setting a password)
1
openssl genrsa -des3 -out client.key 2048
Remove Password (requires entering the password from the previous step)
1
openssl rsa -in client.key -out client.key
Create Client Certificate
1
openssl req -new -key client.key -out client.csr
During execution, you need to enter the following information:
1 2 3 4 5 6 7
Country Name (2 letter code) [AU]:CN State or Province Name (full name) [Some-State]:Beijing Locality Name (eg, city) []:Beijing Organization Name (eg, company) [Internet Widgits Pty Ltd]:cuckooM Organizational Unit Name (eg, section) []:cuckooM Common Name (e.g. server FQDN or YOUR name) []:blog Email Address []:
Note: “Common Name” should be set to the database username you will connect to.
Convert Format. Convert PEM format key to DER format.