HostSEO Blog

Stories and News from IT Industry, Reviews & Tips | Technology Blog


How do I export my certificate from Apache?

It is pretty easy to export a certificate from Apache if you have root access to the server.

In fact you just need to find three files: the certificate issued for your domain name, appropriate Private Key and CA bundle on the server where the certificate is installed.

If you are not sure about the names of the files coming with the certificate, you can locate them by checking your VirtualHost file. If the certificate is installed, you should have the following lines in your VirtualHost:

      SSLCertificateFile "/*path_to_your_certificate*/*.crt"

      SSLCertificateKeyFile "/*path_to_your_Pivate_Key*/*.key"

      SSLCACertificateFile "/*path_to_your_CA_bundle*/*.crt"

The lines have paths to the required files as values, therefore, you can find their location.

Afterwards, simply copy all the three files and upload them to the exportation destination.

In case you are going to install the certificate on a Microsoft server or Tomcat, you may export it in the required PKCS12 format using the openssl command:

openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt

where certificate.crt is the certificate issued for your domain, CACert.crt is the chain of CA certificates, and privateKey.key is your private key. In the output you will have the certificate as a .pfx file in the PKCS12 format required for installation on a Microsoft server or Tomcat.

Subscribe Now

10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!

Archive Calendar

SatSunMonTueWedThuFri
 123456
78910111213
14151617181920
21222324252627
28293031 

Born in 2004 ... Trusted By Clients n' Experts

SEO Stars

They never made me feel silly for asking questions. Help me understand how to attract more people and improve my search engine ranking.

Read More

Emily Schneller Manager at Sabre Inc
SEO Stars

Took advantage of Hostseo's superb tech support and I must say, it is a very perfect one. It is very fast, servers reliability is incredible.

Read More

Leena Mäkinen Creative producer
SEO Stars

We're operating a worldwide network of servers with high quality standards requirements, we’ve choose hostseo to be our perfect partner.

Read More

Ziff Davis CEO at Mashable
SEO Stars

It’s very comfortable to know I can rely about all technical issues on Hostseo and mostly that my website and emails are safe and secured here.

Read More

Isaac H. Entrepreneur
SEO Stars

With hostseo as a hosting partner we are more flexible and save money due to the better packages with great pricing, free SEO n' free SSL too!

Read More

Madeline E. Internet Professional