GoGetSSL Logo
SSL CertificatesTrust solutions
Home Wiki Interesting Articles SSL Generation and Installation How to Transfer an SSL/TLS Certificate from cPanel/Apache to IIS

How to Transfer an SSL/TLS Certificate from cPanel/Apache to IIS

  • Moving a website from Apache to Microsoft IIS does not always require purchasing a new SSL/TLS certificate. All TLS products purchased via GoGetSSL support unlimited server licensing, so If you have the original certificate and its matching private key, you can export them into a PFX file and import it into IIS.

    If the private key is unavailable, you can generate a new one and request a certificate reissue. More about reissue process.

    • *

      Option 1: Transfer the Existing Certificate Using a PFX File

      A PFX file contains an SSL/TLS certificate, its corresponding private key, and optionally the intermediate certificate chain. IIS supports importing certificates in this format.

    • *

      Step 1: Locate Your Certificate and Private Key

      Find the following files on your cPanel-managed hosting account:

      • Private Key: .key
      • SSL/TLS Certificate: .crt or .pem
      • CA Bundle: Intermediate certificates, if available.

      In cPanel, open Security → SSL/TLS (or SSL/TLS Certificates) to access your private keys and certificates. The available options depend on your hosting provider's configuration.

      You do not necessarily need root or SSH access if you can retrieve these files through cPanel.

    • *

      Step 2: Create a PFX File

      Use OpenSSL to export the certificate and private key:

      openssl pkcs12 -export -out example.com.pfx -inkey example.com.key -in example.com.crt -certfile ca-bundle.crt

      Replace the file names and paths with your actual files. If you do not have a separate CA bundle, omit the -certfile option.

      OpenSSL will prompt you to set an export password. Keep it safe because you will need it when importing the PFX file into IIS.

    • *

      Step 3: Import the PFX File into IIS

      1. Open IIS Manager.
      2. Select your server name.
      3. Open Server Certificates.
      4. Click Import.
      5. Select the PFX file and enter its password.
      6. Select the Personal certificate store.
      7. Click OK.
    • *

      Step 4: Configure the HTTPS Binding

      1. Expand Sites and select your website.
      2. Click Bindings → Add or edit the existing HTTPS binding.
      3. Set the type to https and the port to 443.
      4. Select the imported SSL/TLS certificate.
      5. Click OK.

      Visit your website over HTTPS to verify the installation.

    • *

      Option 2: Reissue the Certificate for IIS

      If you cannot access the original private key, you cannot create a PFX containing it. Instead, generate a new private key and CSR on the Windows server and request a certificate reissue.

      1. Open IIS Manager and select your server.
      2. Open Server Certificates.
      3. Click Create Certificate Request.
      4. Enter your organization and domain details, select the key size, and save the CSR.
      5. Submit the CSR to GoGetSSL through the certificate reissue process.
      6. Once the replacement certificate is issued, return to Server Certificates and select Complete Certificate Request.
      7. Select the issued certificate file and complete the installation.

      Finally, configure the HTTPS binding as described in Option 1.

    • *

      Conclusion

      You can transfer an existing SSL/TLS certificate from cPanel or Apache to IIS by exporting it as a PFX file, provided you have its matching private key.

      If the private key is lost, request a certificate reissue using a new CSR generated on the Windows server.

      In either case, verify the certificate and HTTPS binding before removing the files from the original server. Keep PFX files and private keys secure, as they allow access to your certificate's private key.

Fast Issuance within 3-5 minutes

Get a domain-validated SSL certificate within minutes, with no paperwork and no company details needed. Prove you own the domain by email, DNS or a file on your website.

ACME SSL Automation

No more manual installs or expired certificates: automated SSL renews and installs them on any web server. You set it up once, and every renewal runs by itself.

WHMCS Reseller Plugin

Sell SSL certificates from your own hosting platform with our free WHMCS plugin. Your customers order and manage certificates in your client area. See our partner program.

Money Back 30-day guarantee

Your satisfaction comes first: get a full refund within 30 days of buying any SSL certificate, from any brand. Just contact our support team and we will take care of the rest.

Boost Validation

The Legal Entity Identifier (LEI) is a robust and modern way to verify and identify companies, helping to validate OV SSL certificates

Register LEI for $51.00

Help Center

Installation issues or SSL errors? Our Knowledgebase has clear, step-by-step guides to help you install, fix, and troubleshoot fast

Check Manuals

The trust that never expires

Since 2009, we've delivered web security and trust services worldwide. See why customers keep choosing us. From startups to enterprises, we help businesses of all sizes stay secure and build trust with their audience.

Shopper Approved reviews for GoGetSSL