Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

How to export SSL from cPanel with .pfx

Discussion in 'Security' started by webdsn, Jun 21, 2018.

Tags:
  1. webdsn

    webdsn Active Member

    Joined:
    Mar 4, 2018
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Taiwan
    cPanel Access Level:
    Root Administrator
    I have one server use cpanel with linux OS
    but I have one account need export SSL Certificate to windows server

    I saw some teaching post say use this command with root

    but in my server I do not find these file
    I can confirm these Certificate already installed

    In fact I do not find the domain key or crt file in /etc/ssl/certs/ or /etc/ssl/private
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @webdsn,

    Certificates are not stored as .crt or .key files in cPanel & WHM. You can find the combined key and certificate in the following file:

    Code:
    /var/cpanel/ssl/apache_tls/domain.tld/combined
    Replace "domain.tld" with the domain name of the certificate and key you want to obtain. You can then manually copy the certificate and key text into individual .crt and .key files in order to run that command.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. webdsn

    webdsn Active Member

    Joined:
    Mar 4, 2018
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Taiwan
    cPanel Access Level:
    Root Administrator
    Thanks your reply

    I already found that file

    But I saw several sets of encoded content in this file
    one start by BEGIN RSA PRIVATE KEY
    and three start by BEGIN CERTIFICATE

    I don't know which part is .key or .crt file

    In addition, I searched for some teaching articles to use this command to generate PFX files.
    Is this directive wrong or not applicable?
     
    #3 webdsn, Jun 21, 2018
    Last edited: Jun 21, 2018
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,749
    Likes Received:
    1,885
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @webdsn,

    The following content is for the .key file:

    Code:
    -----BEGIN RSA PRIVATE KEY-----
    CONTENTHERE
    -----END RSA PRIVATE KEY-----
    The following content is for the .crt file:

    Code:
    -----BEGIN CERTIFICATE-----
    CONTENTHERE
    -----END CERTIFICATE-----
    That command should work as long as you manually separate out the data from the combined file into individual .key and .crt files.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. webdsn

    webdsn Active Member

    Joined:
    Mar 4, 2018
    Messages:
    29
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Taiwan
    cPanel Access Level:
    Root Administrator
    Thanks your reply
    I will try this~
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice