The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install Core Service SSLs via Command Line ?

Discussion in 'Security' started by Tcalp, Apr 17, 2015.

  1. Tcalp

    Tcalp Active Member

    Joined:
    Mar 16, 2013
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ottawa, ON, Canada
    cPanel Access Level:
    DataCenter Provider
    Hey Guys,

    I expect this is possible, I'm just not sure how to go about it. I did some searching and didn't find anything. I'm putting together some kickstart scripts and would like to automatically install the core service SSLs (mail/whm/ftp) from shell/command line.

    If anyone can enlighten me it would be appreciated :).
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    There are no automated commands to install service SSL certificates, but essentially you just need to replace the existing certificate data in the appropriate files (named after the service) in the following directory:

    /var/cpanel/ssl/

    You will see file names and directory names within the above directory that will guide you on what to replace. Also, ensure you restart the service after updating those files.

    Thank you.
     
Loading...

Share This Page