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!

Updating SSL Certficate After hostname Change fails

Discussion in 'General Discussion' started by crosswinds, May 3, 2013.

  1. crosswinds

    crosswinds Member

    Jul 15, 2003
    Likes Received:
    Trophy Points:

    I'm stumped.

    I recently successfully changed the hostname of a server and was going through the process of generating and installing an SSL certficate to match. The CSR generation, etc was successful. When I go to Install the certificate in either the virtual host or for the services, I enter the hostname and it hangs looking up the SSL info.

    Looking at the error log I get the following:

    error>[an error occurred while processing this directive]</error>[2013-05-03 12:50:34 +0100] die [Internal Death while parsing [stdin] 2889] Died at /usr/local/cpanel/Cpanel/ line 87.
    Cpanel::HttpRequest::__ANON__('ALRM') called at /usr/local/cpanel/Cpanel/ line 28
    eval {...} called at /usr/local/cpanel/Cpanel/ line 24
    Cpanel::SocketIP::_resolveIpAddress('') called at /usr/local/cpanel/Cpanel/ line 530
    Cpanel::HttpRequest::_getAddressList('Cpanel::HttpRequest=HASH(0xbbf7b2c)', '') called at /usr/local/cpanel/Cpanel/ line 810
    Cpanel::HttpRequest::_initrequest('Cpanel::HttpRequest=HASH(0xbbf7b2c)', 'host', '', 'url', '/v1.0/get_certificate_bundle', 'http_protocol', 'HTTP/1.0', 'destfile', ...) called at /usr/local/cpanel/Cpanel/ line 98
    Cpanel::HttpRequest::request('Cpanel::HttpRequest=HASH(0xbbf7b2c)', 'url', '/v1.0/get_certificate_bundle', 'host', '', 'headers', 'Content-Type: application/x-www-form-urlencoded^M^J', 'body', ...) called at /usr/local/cpanel/Cpanel/ line 484
    Cpanel::HttpRequest::httppost('Cpanel::HttpRequest=HASH(0xbbf7b2c)', '', '/v1.0/get_certificate_bundle', 'HASH(0xbbf6380)') called at /usr/local/cpanel/Cpanel/ line 57
    Cpanel::SSLInfo::fetchcabundle('-----BEGIN CERTIFICATE-----^JMIIEFzCCAv+gAwIBAgIJAJY5MqtAw+AcMA0G...') called at /usr/local/cpanel/Cpanel/ line 299
    Cpanel::SSLInfo::fetchinfo('', undef) called at /usr/local/cpanel/Whostmgr/XMLUI/ line 53
    Whostmgr::XMLUI::SSL::fetchinfo('crtdata', undef, 'domain', '') called at whostmgr/bin/xml-api line 1705
    main::__ANON__('HASH(0x93e3d5c)') called at whostmgr/bin/xml-api line 2846
    main::runapp_v0('HASH(0x93e3d5c)') called at whostmgr/bin/xml-api line 2896
    main::runapp('fetchsslinfo', 'HASH(0xba2794c)', 'HASH(0x93e3d5c)') called at whostmgr/bin/xml-api line 2770

    I attempted to trace through and found that /usr/local/cpanel/Whostmgr/XMLUI/ does not exist on the system.

    I manually replaced the certificate in /etc/pki/tls/certs/ and it is seen by SSL Key/Crt Manager. Nothing else can see it.


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