Transferring an SSL Certificate form a Windows Server to an Apache Server


Apache servers split the SSL Certificate parts into two separate files: .crt and .key files. The .crt file contains the public key file (SSL Certificate file), and the .key file contains the associated private key. DigiCert provides your SSL Certificate file (public key file). You use your server to generate the associated private key file as part of the CSR. You need both the public and private keys for an SSL Certificate to function.

Windows servers use .pfx files that contain the public key file (SSL Certificate file) and the associated private key file. So, if transferring your SSL Certificates from a Windows server to Apache, you need to export the certificate in an Apache compatible format, which splits the public (.crt) and private (.key) files.

How to Export Your SSL Certificate w/Private Key Using the DigiCert Certificate Utility

These instructions explain how to export an SSL Certificate installed on a Microsoft server for importing to an Apache server. The SSL Certificate file is exported as a .crt and .key file and includes the intermediate certificate. If you need your SSL Certificate in a .pfx format, please see DigiCert Certificate Utility SSL Certificate Export Instructions (PFX Format).

  1. On your Windows Server from which you want to export the SSL Certificate, download and save the DigiCert® Certificate Utility for Windows executable (DigiCertUtil.exe).

  2. Run the DigiCert® Certificate Utility for Windows.

    Double-click DigiCertUtil.

  3. In the DigiCert Certificate Utility for Windows©, click SSL (gold lock), select the certificate that you want to export as a .pfx file, and then click Export Certificate.

    Select Certificate then click Export Button

  4. In the Certificate Export wizard, select Yes, export the private key, select key file (Apache compatible format), and then click Next.

    Apache compatible format

  5. In the File name box, click to browse the location where you want to save your files.

    Apache compatible format

  6. In the Save As window, browse for and select the location where you want to save your .key and .crt files.

  7. Provide a file name (i.e. your_domain_com.key) for your .key file, noting that your server .crt file will have the same name (i.e your_domain_com.crt).

  8. Click Save.

  9. In the Certificate Export wizard, click Finish.

    This exports the following files that you need to copy to your Apache server:

    Private Key: your_domain_com.key
    Server Certificate: your_domain_com.crt
    Intermediate Certificate: DigiCertCA.crt

  10. After you receive the "Your certificate and key have been successfully exported" message, click OK.

    Select Certificate then click Export Button

Enable Certificate Files on Apache and Other Servers Using Apache Format

To enable these certificate files in Apache or other Server types that use SSL Certificate files in Apache format, you need to follow the instructions for that particular server type:

For other server types that use certificate files in Apache format, please see SSL Certificate Installation Instructions & Tutorials to find the SSL Certificate installation instructions for your server type.

Test Your Installation

To verify that the installation is correct, use our DigiCert® SSL Installation Diagnostics Tool and enter the DNS name of the site (i.e., or that you are securing to test your SSL Certificate.

Apache SSL Certificates, Guides, & Tutorials

Buy Now Learn More