Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Force regenerate server's SSL certificate

Discussion in 'Security' started by Rogerio, Oct 18, 2018.

  1. Rogerio

    Rogerio Well-Known Member

    Joined:
    Sep 26, 2016
    Messages:
    74
    Likes Received:
    13
    Trophy Points:
    8
    Location:
    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.
     
    #1 Rogerio, Oct 18, 2018
    Last edited by a moderator: Oct 22, 2018
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,164
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Rogerio


    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 depends really on what you have set in the redirection section of WHM>>Server Configuration>>Tweak Settings


    To generate the hostname SSL you can run the following:

    Code:
    /usr/local/cpanel/bin/checkallsslcerts
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Rogerio likes this.
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice