Get your FREE copy of "The Ultimate Guide of SSL"

Download Ebook

How to Create an Apache Self Signed Certificate

SSL is an important factor to encrypt all web traffic sent to and from your Apache web site. It secures all personal data and communication between users and web server. Before creating a self signed certificate make sure that you have installed OpenSSL in your system.

Steps to create a Self Signed Certificate in Apache

Step 1. Generate the private key using following command

openssl genrsa -des3 -out server.key 1024
You will be asked for the password twice the time. Put a strong password and remember it to install SSL Certificate.

Step: 2. Once you have generated private key and also installed OpenSSL, run the following commend to create an Apache self signed certificate

openssl req -x509 -nodes -days 365 –newkey rsa:2048 –keyout mysitename.key -out mysitename.crt

Step:3. As you enter above commend you will be promoted to enter several information related to organization.

Country Name (2 letter code) [GB]:
State or Province Name (full name) [Berkshire]:
Locality Name (eg, city) [Newbury]:
Organization Name (eg, company) [My Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server’s hostname) []: FQDN of the server
Email Address []: myaddress at
Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

The common name should match with the Fully Qualified Domain Name of your SSL website. The email address, challenge password, and optional company is not mandatory and you can leave it blank. As finishing the process, you will have two files: a mysitename.key file and a mysitename.crt self signed certificate file valid for 1 year.
⏬ ⏬  Get rid of “⚠️ Not Secure” warning with these trusted SSL Certificates  ⏬ ⏬ 



Comodo Positive SSL


Vendor Price: $41.73

Coupon Code: ASCSCPSSL4

Get It Now



RapidSSL Certificate


Vendor Price: $69

Coupon Code: ASRSRSSL2

Get It Now



Comodo PositiveSSL Multi-Domain

$17.54 – 2 SAN Included

Vendor Price: $41.73

Coupon Code: ASCSCPMD4

Get It Now

Disclosure: AboutSSL appreciates your continuous support. It helps us tremendously to keep moving in the competitive SSL industry. Here most of the links which direct you to buy any SSL/TLS related service or products earns us a certain percentage of referral commission. Learn More