2 of my vps having problems with the manage service SSL.
The servers are running for a longer time without problems, but now SSL won't renew it certificates.
Both vps are running:
[email protected] [~]# /usr/local/cpanel/bin/checkallsslcerts --verbose
[email protected] [~]# dig a vps.eq5.myserver.com
The servers are running for a longer time without problems, but now SSL won't renew it certificates.
Both vps are running:
[email protected] [~]# /usr/local/cpanel/bin/checkallsslcerts --verbose
Code:
[email protected] [~]# /usr/local/cpanel/bin/checkallsslcerts --verbose
The system will check for the certificate for the “cpanel” service.
The system will attempt to verify that the certificate for the “cpanel” service is still valid using OCSP (Online Certificate Status Protocol).
The “cpanel” service’s current certificate comes with the server’s cPanel license. This certificate expires in less than 25 days. The system will attempt to renew and install a new certificate to the “cpanel” service and any other services that use the old certificate.
The system will attempt to install a certificate for the “cpanel” service from the system ssl storage.
None of the certificates in the system ssl storage were acceptable to use for the “cpanel” service.
The system will attempt to install a certificate for the “cpanel” service from the cPanel store.
Received error “X::NoCertificate” from cPanel Store; requesting new certificate …
Setting up HTTP DCV (/var/www/html/.well-known/pki-validation/09E981F8E1A905A6942C5769FA837165.txt) …
… complete.
Setting up DNS DCV (CNAME _09e981f8e1a905a6942c5769fa837165.vps.eq5.myserver.com) …
… complete.
Attempting DNS DCV preflight check …
FAILED: The DNS DCV check (_09e981f8e1a905a6942c5769fa837165.vps.eq5.myserver.com IN CNAME) did not return the expected value (e49d0b50b0654e7f1efdb3e869f3529f.9fb7fecdbac8015d57fe650ae1d61ea5.comodoca.com).
Attempting HTTP DCV preflight check …
FAILED: Cpanel::Exception/(XID 6xnhx8) The system queried for a temporary file at “http://vps.eq5.myserver.com/.well-known/pki-validation/09E981F8E1A905A6942C5769FA837165.txt”, but the web server responded with the following error: 404 (Not Found). A DNS (Domain Name System) or web server misconfiguration may exist.
at /usr/local/cpanel/Cpanel/SSL/DCV.pm line 386.
Cpanel::SSL::DCV::__ANON__(Cpanel::Exception::HTTP::Server=HASH(0x32ac8a0)) called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 118
Try::Tiny::try(CODE(0x2c567a8), Try::Tiny::Catch=REF(0x2a1e3b8)) called at /usr/local/cpanel/Cpanel/SSL/DCV.pm line 446
Cpanel::SSL::DCV::_verify_http("http://vps.eq5.myserver.com/.well-known/pki-validation/09E"..., "e49d0b50b0654e7f1efdb3e869f3529f9fb7fecdbac8015d57fe650ae1d61"..., "COMODO DCV", ARRAY(0x32778d8)) called at /usr/local/cpanel/Cpanel/SSL/DCV.pm line 282
Cpanel::SSL::DCV::verify_http("http://vps.eq5.myserver.com/.well-known/pki-validation/09E"..., "e49d0b50b0654e7f1efdb3e869f3529f9fb7fecdbac8015d57fe650ae1d61"..., "COMODO DCV") called at /usr/local/cpanel/Cpanel/Market/Provider/cPStore/Utils.pm line 88
Cpanel::Market::Provider::cPStore::Utils::imitate_http_dcv_check_locally("vps.eq5.myserver.com", ".well-known/pki-validation/09E981F8E1A905A6942C5769FA837165.txt", "e49d0b50b0654e7f1efdb3e869f3529f9fb7fecdbac8015d57fe650ae1d61"...) called at /usr/local/cpanel/Cpanel/cPStore/HostnameCert/DCV.pm line 193
eval {...} called at /usr/local/cpanel/Cpanel/cPStore/HostnameCert/DCV.pm line 189
Cpanel::cPStore::HostnameCert::DCV::set_up("-----BEGIN CERTIFICATE REQUEST-----\x{a}MIICnDCCAYQCAQAwIjEgMB4GA"...) called at /usr/local/cpanel/Cpanel/cPStore/HostnameCert.pm line 159
Cpanel::cPStore::HostnameCert::_request_new_certificate(Cpanel::cPStore::HostnameCert=HASH(0x25bd510)) called at /usr/local/cpanel/Cpanel/cPStore/HostnameCert.pm line 129
Cpanel::cPStore::HostnameCert::get_hostname_cert_from_store(Cpanel::cPStore::HostnameCert=HASH(0x25bd510)) called at bin/checkallsslcerts.pl line 528
bin::checkallsslcerts::_get_certificate_pem_from_store(bin::checkallsslcerts=HASH(0x1b16120)) called at bin/checkallsslcerts.pl line 450
bin::checkallsslcerts::__ANON__() called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 97
eval {...} called at /usr/local/cpanel/3rdparty/perl/528/lib/perl5/cpanel_lib/Try/Tiny.pm line 88
Try::Tiny::try(CODE(0x226abb8), Try::Tiny::Catch=REF(0x1b8b8f8)) called at bin/checkallsslcerts.pl line 454
bin::checkallsslcerts::_replace_cert_with_ca_signed_cert_from_cpstore(bin::checkallsslcerts=HASH(0x1b16120), "cpanel") called at bin/checkallsslcerts.pl line 310
bin::checkallsslcerts::_check_notify_and_auto_renew_cert_for_service(bin::checkallsslcerts=HASH(0x1b16120), "cpanel") called at bin/checkallsslcerts.pl line 86
bin::checkallsslcerts::run(bin::checkallsslcerts=HASH(0x1b16120)) called at bin/checkallsslcerts.pl line 50
Undoing HTTP DCV setup …
… complete.
Undoing DNS DCV setup …
… complete.
[WARN] The system failed to acquire a signed certificate from the cPanel Store because of the following error: Neither HTTP nor DNS DCV preflight checks succeeded!
Code:
[email protected] [~]# dig a vps.eq5.myserver.com
; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.68.rc1.el6_10.1 <<>> a vps.eq5.myserver.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54963
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;vps.eq5.myserver.com. IN A
;; ANSWER SECTION:
vps.eq5.myserver.com. 7200 IN A 111.222.333.444
;; Query time: 4 msec
;; SERVER: 111.222.333.888#53(111.222.333.888)
;; WHEN: Sat Feb 23 12:00:21 2019
;; MSG SIZE rcvd: 57