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!

Cannot access cPanel as SSL has expired

Discussion in 'Security' started by chris0147, Jan 17, 2018.

  1. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hi all,

    I have trouble getting access to cPanel as the SSL certificate has been expired. I cannot be able to login to the server via putty due to network connection has been refused so I can't be able to renew the SSL certificate. I have got AutoSSL on my VPS, but it did not renew the SSL for the domain.

    At all I am getting this:
    Can you please help me how I can get access to my VPS to reset or new SSL certificate as I have tried everything to restart the cPanel but I have no luck? :(
     
    #1 chris0147, Jan 17, 2018
    Last edited by a moderator: Jan 17, 2018
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,235
    Likes Received:
    384
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you tried using the IP address?
    hxxps://12.34.56:2087
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    chris0147 likes this.
  3. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Yes I did, I can now be able to login.

    I can see the reason why my ssl certificate has expired because it has not been renew it by AutoSSL.

    In the manage SSL hosts I can see that most domains are SSL which are included myservername.com.

    I can see this:

    12.34.56.123
    server.myservername.com
    12.34.56.123 shared Yes No /var/www/html nobody

    1/1/70 Error
    Error
    Delete
    12.34.56.123
    server.myservername.com
    * dedicated No No /var/www/html nobody


    This is the reason why I cant be able to connect to my WHM and cPanel via SSL as the SSL certificate has expired.

    How I can be able to renew the SSL certificate for server.myservername.com?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,235
    Likes Received:
    384
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Similar issue mentioned here:
    New Thread - Error when trying to remove SSL hosts
    I see it on my servers as well.

    This won't prevent the hostname SSL from auto renewing though I don't think. The hostname SSL will still auto renew.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    chris0147 likes this.
  5. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    How did you solved the problem?

    I can see the name of the account for server.myservername.com name to nobody.

    How I can change to owner as I am using centos 7 64 bit??

    Do I have to edit in the httpd.conf or login via WHM?

    I need an instruction how I could do this as I want to get it to solve asap
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,235
    Likes Received:
    384
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's correct.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. gopkris2005

    gopkris2005 Well-Known Member

    Joined:
    Jan 9, 2007
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can try this would help.

    cpanelkb.net/reset-ssl-certificate-via-command-line-using-api/



     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #7 gopkris2005, Jan 18, 2018
    Last edited by a moderator: Jan 18, 2018
  8. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    You have not answered my question.

    How do you solved the problem to fix the ssl certificate for the main server?

    How I can fix the root document to allow the ssl certficate to be valid for the hostname?
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,889
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's likely a good idea to solve this issue first so that you have command line access to investigate further. Are any firewall rules or "WHM >> Host Access Control" rules setup to block SSH connections?

    Note that generally you'd reset the hostname via "WHM >> Change Hostname" so that a new AutoSSL certificate for the correct hostname is setup.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    Hello cPanelMichael.

    I have checked on the Host Access Control, I cant see anything about the setup to block SSH connections, but this is the only one I can see:

    i.imgur.com/PYXrWTL.png



    I have changed the hostname via WHM >> ChangeHostname, but I still get this:

    i.imgur.com/DnwBFdU.png


    Do you know why and what the trouble is?

    I am getting so frustrated as I have tried everything but I am getting no luck to get access to the cpanel. :(
     
    #10 chris0147, Jan 18, 2018
    Last edited by a moderator: Jan 18, 2018
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,889
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you open a support ticket using the link in my signature so we can take a closer look at the system?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. chris0147

    chris0147 Active Member

    Joined:
    Aug 28, 2015
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London
    cPanel Access Level:
    Root Administrator
    I have open a support ticket using the link in your signature so I hope you will be able to look at the system to find out why and what the trouble is so you can be able to solve it.

    Please let me know when you have found the problem and solve the problem.

    Thank you.
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,889
    Likes Received:
    1,814
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    To update, here's part of the response sent by one of our Technical Analysts on this support ticket:

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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