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.

SOLVED Question about free cPanel-signed hostname SSL certificate

Discussion in 'Security' started by Redwene, Feb 21, 2017.

Tags:
  1. Redwene

    Redwene Member

    Joined:
    Nov 29, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Tunisia
    cPanel Access Level:
    Root Administrator
    Hi,

    I have recently bought a cpanel Licence for my server.
    and a received an email about :

    Your free cPanel-signed hostname SSL certificate for nsxxxxx.ip-188-xxx-xxx.eu is available

    Code:
    he certificate covers the following domains:
    
        nsxxxxx.ip-188-xxx-xxx.eu
        www.nsxxxxx.ip-188-xxx-xxx.eu
    The problem is In the meanwhile i was going to change the hostname of my server to hosting.mydomain.com
    So First How can i Install this Certificate because it's not installed yet as i have bad SSL certificate in my Browser?
    and Can i change the hostanme of the server in Cpanel without break this certificate ?
     
    #1 Redwene, Feb 21, 2017
    Last edited by a moderator: Feb 21, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Changing the hostname will automatically generate a new SSL certificate request. You can install the hostname's certificate to Apache using the following option:

    "WHM Home » SSL/TLS »Install an SSL Certificate on a Domain"

    Thank you.
     
  3. Redwene

    Redwene Member

    Joined:
    Nov 29, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Tunisia
    cPanel Access Level:
    Root Administrator
    Im Trying to Secure the WHM panel not a specefic domain

    Should i follow this Tutorial ?

    tecadmin.net/install-services-ssl-certificates-in-whm-cpanel/

    If yes what Should i Put here ?
    Domains: Provide the FQDNs that you wish to secure,
    knowing that it's for WHM Panel
     
    #3 Redwene, Feb 21, 2017
    Last edited by a moderator: Feb 22, 2017
  4. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    First change the server hostname via

    WHM » Networking Setup » Change Hostname

    example, server.domain.com

    This should automatically generate the free SSL, so you can then go to:

    WHM » Service Configuration » Manage Service SSL Certificates

    click "Browse Certificates" and use "Browse Account: root".

    You should see a certificate for your 'server.domain.com' and the Issuer column should say: cPanel, Inc.

    If you do not see this, and they all say Issuer: "Self signed", then go into SSH and run the following command:

    Code:
    # /usr/local/cpanel/bin/checkallsslcerts
    You may have to run it a few times as the first time you run it, it usually says about putting the SSL into queue until it runs again, so running

    Code:
    # /usr/local/cpanel/bin/checkallsslcerts
    a second time, will have it actually generate the SSL.

    Then go back to Manage Service SSL Certificates in WHM and select the cPanel, Inc issued SSL, and check the 4 services boxes and then click install.
     
  5. Redwene

    Redwene Member

    Joined:
    Nov 29, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Tunisia
    cPanel Access Level:
    Root Administrator
    A Changed my hostname and in This section i have a Cpanel Inc Issuer but the Domain is wrong i have the old hostname


    Issuer cPanel, Inc.

    Home »Networking Setup »Change Hostname

    Current Hostname
    hosting.mydomain.ovh

    Changed Yesterday
     
  6. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Ok so did you run the script via SSH like I mentioned :)
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Try running the following command, as mentioned in the previous post, after updating the hostname:

    Code:
    /usr/local/cpanel/bin/checkallsslcerts
    This should automatically update and install the hostname certificate on the services.

    Thank you.
     
  8. Redwene

    Redwene Member

    Joined:
    Nov 29, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    Tunisia
    cPanel Access Level:
    Root Administrator
    Thank You Both Https Enabled and running :)
     
    cPanelMichael likes this.
  9. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    588
    Likes Received:
    88
    Trophy Points:
    153
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    :-D
     
  10. kpmedia

    kpmedia Well-Known Member

    Joined:
    Feb 13, 2011
    Messages:
    86
    Likes Received:
    0
    Trophy Points:
    56
    Location:
    USA, Europe
    cPanel Access Level:
    Root Administrator
    After more than a doze attempts, getting this over and over:

    Code:
    The system will check for the certificate for the âcpanelâ
    The system will attempt to replace the self-signed certificate for the âcpanelâ
    The system will attempt to install a certificate for the âcpanelâ
    None of the certificates in the system ssl storage were acceptable to use for the âcpanelâ
    The system will attempt to install a certificate for the âcpanelâ
     [WARN] The system failed to acquire a signed certificate from the cPanel Store because of the following error: (XID re6b7m) The cPanel Store returned an error (X::PermissionDenied) in response to the request âPOST ssl/certificate/whm-licenseâ
    The system will check for the certificate for the âdovecotâ
    The system will attempt to replace the self-signed certificate for the âdovecotâ
    The system will attempt to install a certificate for the âdovecotâ
    None of the certificates in the system ssl storage were acceptable to use for the âdovecotâ
    The system will check for the certificate for the âeximâ
    The system will attempt to replace the self-signed certificate for the âeximâ
    The system will attempt to install a certificate for the âeximâ
    None of the certificates in the system ssl storage were acceptable to use for the âeximâ
    The system will check for the certificate for the âftpâ
    The system will attempt to replace the self-signed certificate for the âftpâ
    The system will attempt to install a certificate for the âftpâ
    None of the certificates in the system ssl storage were acceptable to use for the âftpâ
     
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome.

    Thank you.
     
  12. HostXNow_Chris

    HostXNow_Chris Registered

    Joined:
    Jan 22, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United Kingdom
    cPanel Access Level:
    Root Administrator
    I was looking how to do this manually. So just run

    Code:
    /usr/local/cpanel/bin/checkallsslcerts
    Which works great. But make sure the hostname points to the correct IP.
     
Loading...

Share This Page