You may need to generate a self-signed certificate because:
You don't plan on having your certificate signed by a CA.
You wish to test your new SSL implementation while the CA is signing your
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: