Force regenerate server's SSL certificate

Rogerio

Well-Known Member
Sep 26, 2016
78
15
8
Sao Paulo, Brazil
cPanel Access Level
Root Administrator
Hello, I'm having a problem when an user try to open webmail from his cPanel account.

Scenario:

My server hostname is like server.example.com.br
I just created DNS entries for it and www.

When an user log in his cPanel and try to open webmail of one user, it redirects to:
https://webmail.server.example.com.br/...
Error, since the entry is not found.

This supposed to be https://webmail.userdomain/ since the user logged in using https://userdomain/cpanel, no?

So, I've created *.server.example.com.br pointing to the IP.
Ok, now it's working, but returning SSL error, because cert was only created to hostname and www.hostname

Question: how can I regenerate the main server's certificate?
When I regenerate, it will auto-create entries like webmail.hostname?

Thanks.
 
Last edited by a moderator:

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,114
662
263
Houston
cPanel Access Level
DataCenter Provider
Hi @Rogerio


https://webmail.server.example.com.br/...
Error, since the entry is not found.
This behavior would most likely only occur if the domain associated with the hostname doesn't have its DNS hosted on the same server.

This supposed to be https://webmail.userdomain/ since the user logged in using https://userdomain/cpanel, no?
This depends really on what you have set in the redirection section of WHM>>Server Configuration>>Tweak Settings


how can I regenerate the main server's certificate?
To generate the hostname SSL you can run the following:

Code:
/usr/local/cpanel/bin/checkallsslcerts
 
  • Like
Reactions: Rogerio