SOLVED Question about free cPanel-signed hostname SSL certificate

Redwene

Member
Nov 29, 2016
19
2
3
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 ?
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
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.
 

Redwene

Member
Nov 29, 2016
19
2
3
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
 
Last edited by a moderator:

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
797
152
168
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.
 

Redwene

Member
Nov 29, 2016
19
2
3
Tunisia
cPanel Access Level
Root Administrator
You should see a certificate for your 'server.domain.com' and the Issuer column should say: cPanel, Inc.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
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.
 

kpmedia

Well-Known Member
Feb 13, 2011
87
1
56
USA, Europe
cPanel Access Level
Root Administrator
You may have to run it a few times
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â
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,912
2,241
363
[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â
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.