Wednesday, May 6, 2020

Create server.crt for Connected APP

1. Generate a private key, and store it in a file called server.key.
openssl genrsa -des3 -passout pass:xxxx -out server.pass.key 2048

openssl rsa -passin pass:xxxx -in server.pass.key -out server.key

2. Generate a certificate signing request using the server.key file.
Store the certificate signing request in a file called server.csr. Enter information about your company when prompted.
openssl req -new -key server.key -out server.csr

3. Generate a self-signed digital certificate from the server.key and server.csr files. Store the certificate in a file called server.crt.
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt

No comments:

Post a Comment