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!

How to reset certificate or change hostname from shell

Discussion in 'Security' started by speckados, May 9, 2017.

Tags:
  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I've use a templates for create my new VPS (KVM)

    But now has a problem, because on template server certificate (Free) it's outdated.

    My config it's secure, and when try access, send to hostname (hostname it's name of template and not actual name)

    On this point, I can't access to WHM

    I like reset hostname and recreate SSL certificate or not force to move access to hostname for access to WHM interface and change hostname.

    Apreciate help.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    The set_hostname utility will allow you to make the change via the command line:

    The set_hostname Utility - Documentation - cPanel Documentation

    Per this document:

    More information on the free hostname SSL certificate is available at:

    Free cPanel-Signed Hostname Certificate - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Thanks.

    Also I need run fater, /usr/local/cpanel/bin/checkallsslcerts because command set_hostname not work properly when change certificate.
     
    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