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.

AutoSSL Letsencrypt for services

Discussion in 'Security' started by visskiss, Sep 19, 2016.

Tags:
  1. visskiss

    visskiss Member

    Joined:
    Jun 17, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I have been using the cPanel API to install certificates based on this thread:

    [How-To] Installing SSL from Let's Encrypt

    However, I have switched to AutoSSL and I am wondering how I can have the autossl certificates installed for services (mail, whm, cPanel).

    1. Is it possible?
    2. If not, where are the certificates used by AutoSSL so I can install them via the API
    3. IF so, what are the settings that I need to update?
    4. Do I need dedicated IP addresses for the domains for which I want to use this?

    This is my current command for installing services ssl

    Code:
    my $request = HTTP::Request->new( POST => "https://127.0.0.1:2087/json-api/install_service_ssl_certificate?api.version=1&service=$service&crt=$cert&key=$key" );
    $request->header( Authorization => $auth );
    my $response = $ua->request($request);
    I am interested in knowing the locations of Autossl certificates anyway. Where are these?

    Cpanel version 58 build 28

    Thank you!
     
    #1 visskiss, Sep 19, 2016
    Last edited: Sep 19, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Free cPanel-signed certificates for the hostname (for use with your services) are automatically generated as of cPanel 56. Here's the relevant quote from the cPanel 56 Release Notes:

    Could you verify if this is the functionality you are seeking, or are you attempting to install your own custom SSL certificates for the services?

    Thank you.
     
  3. visskiss

    visskiss Member

    Joined:
    Jun 17, 2008
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Ah. I did not know that. I have activated that now by reseting the certificate and running the script. All is up and running now. I will use SNI for the other domain names and start using the hostname for WHM/CPanel and the generic email server.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page