SOLVED [CPANEL-23840] hostname uses wrong SSL certificate

warstoke

Registered
Aug 30, 2018
2
0
1
United States
cPanel Access Level
Root Administrator
I work for a webhosting company and we have suddenly seen a number of whm vps and dedicated server customer hostname ssls not being renewed or its using the ssl for a domain for the first account on the server
 

Fraserun

Registered
Nov 11, 2018
1
0
1
New Zealand
cPanel Access Level
Root Administrator
WHM was setup and running fine on https://whm.example.com:2087 with no certificate errors.

I added an Account for example.com and AutoSSL generated certificates for it.

Now when I visit https://whm.example.com:2087 I get a certificate error:

whm.example.com:2087 uses an invalid security certificate.

The certificate is only valid for the following names: example.com, cpanel.example.com, mail.example.com, webdisk.example.com, webmail.example.com, www.example.com
In WHM when I go to "Manage Service SSL Certificates" the certificate for whm.example.com is active.

I tried terminating the example.com account but the problem persists.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Internal case CPANEL-23840 is open to address an issue where using "whm.domain.tld" as the server's hostname results in the system using the SSL certificate associated with "domain.tld" when it's setup as an individual account. I'll update this thread as soon as the solution is published. In the meantime, the workaround is to rename the hostname to something other than "whm.domain.tld". Note that service subdomains are not recommended for use as the hostname per the guidelines at:

Change Hostname - Version 76 Documentation - cPanel Documentation

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello Everyone,

To update, this is fixed in cPanel & WHM version 76.0.7:

Fixed case CPANEL-23840: Ensure the base SSL context is used for the hostname.

You can learn more about our release tiers by clicking here and see which build is published to each release tier by clicking here.

Thank you.
 

Jasimp

Registered
Jul 17, 2017
2
0
51
UAE
cPanel Access Level
Root Administrator
why ssl certificate showing invalid for whm.cp.hostname.com. but working fine with hostname.com:2087
I want to use the whm login url as whm.hostname.com instead of adding the port number at end
The whm server hostname is cp.hostname.com