Generating a New Self-Signed SSL Certificate

You may need to generate a self-signed certificate because:

Generate a self-signed certificate using OpenSSL.
This temporary certificate will generate an error in the client's browser that warns the client that the signing certificate authority is unknown and not trusted. To generate a temporary certificate (which is good for 365 days), run the following command:
# openssl x509 req -days 365 -in csr_name.csr -signkey key_name.key -out cert_name.crt