How to export an SSL certificate from Apache server?

When you want to move an SSL certificate from one server to another server, you need to perform the following steps:

  1. Login to your old server as root user.

  2. Find .crt and .key files of your domain’s SSL certificate. You can use following commands for finding the files:
    find / -name '*.crt' find / -name '*.key'

  3. Generally, these two files will be located under following path:
    /etc/ssl/

  4. So, the full file name should be as follows:
    /etc/ssl/certs/YOUR_DOMAIN_NAME.crt /etc/ssl/private/YOUR_DOMAIN_NAME.key

  5. Now, you need to run following command to export the SSL:
    • openssl pkcs12 -export -out OUTPUT_FILENAME -inkey KEY_FILENAME -in CERTIFICATE_FILENAME
    • Parameters should be:
      1. OUTPUT_FILENAME: File name with full path for generating file.KEY_FILENAME : Full path of .key file (i.e. : /etc/ssl/private/DOMAIN.key).
      2. CERTIFICATE_FILENAME: Full path of .crt file.(i.e.: /etc/ssl/certs/DOMAIN.crt).

  6. You will be asked to set a password for your file. Enter the password and re-enter it to confirm that password. This will create the .pfx file at the given path.

  7. Download this .pfx file to another server in which you want to install this certificate.
Notes:
  1. These steps are performed on CentOS 5.6. For other Linux based distributions, it would be similar.
  2. These steps can only be performed if you have the root access to your Linux VPS /Dedicated Server.

  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

What encryption technology is used to generate the SSL certificate I have purchased?

We are providing Rapid SSL certificates with strong 256-bit encryption based on SHA256 hash...

How to generate CSR key and install SSL certificate on IIS 8?

SSL (Secure Sockets Layer) is an encryption technology, which creates an encrypted connection...

Do you provide Extended Validation Certificate?

No, we do not provide Extended Validation Certificate. However, we do provide the following SSL...

DigiCert Completes Acquisition of Symantec’s Security Business

Browser developers including Google had raised questions about the way Symantec issued SSL...

How do I enable TLS 1.2 on Windows 7?

This article will guide to enable TLS 1.2 on Windows 7.TLS is a replacement of the Secure...