• Hosting
  • Linux
Generate a self-signed SSL Certificate with OpenSSL.

Occasionally it may be necessary to generate a self-signed SSL certificate. This could be for internal websites, or for other internal uses that may require secure encrypted network transmissions.

Generating a self-signed certificate may be an easy task for the intermediate or senior level admin, however we decided to post this guide for everyone to use, since using the guide as a reference may hopefully be useful to those of you out there 😉

1. Generate an SSL key without a passphrase, enter:

2: Create a self-signed certificate, enter:

Sample output:

My Sample Apache httpd.conf virtual host file:

3. Restart httpd/Apche:

Thats it! Test the SSL Cert to ensure it loads fine and reflects the proper values when you examine the properties.