Skip to main content

How to Remove Old, Expired, Self-signed, fqdn Certificate

Comments

13 comments

  • cPRex Jurassic Moderator
    Hey there! Is that domain for a domain name with web content or for the hostname of the server?
    0
  • ChristopherChemist
    Hey there! Is that domain for a domain name with web content or for the hostname of the server?

    This is the hostname of the server (hostname.example.com). I don't find a zone record for this address in WHM (or in cPanel). When Firefox goes to this address, it complains of a security problem with the certificate, then, on telling it to continue anyway, it goes to an error page. If Firefox is given a made-up address, like hostnametest.example.com, it says the site is not found. I don't really know what behavior is expected when someone tries to go to a fully qualified domain name, such as the aforementioned hostname.example.com.
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. Normally I would expect this to go to the classic "Sorry" default page, as there isn't web content on the hostname. Can you run this command and see if that gets a new certificate issued? /usr/local/cpanel/bin/checkallsslcerts
    0
  • ChristopherChemist
    Thanks for the additional details. Normally I would expect this to go to the classic "Sorry" default page, as there isn't web content on the hostname. Can you run this command and see if that gets a new certificate issued? /usr/local/cpanel/bin/checkallsslcerts

    Here's what I get: 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 certificate for the "cpanel" service passed all checks. The system will check for the certificate for the "dovecot" service. The system will attempt to verify that the certificate for the "dovecot" service is still valid using OCSP (Online Certificate Status Protocol). The certificate for the "dovecot" service passed all checks. The system will check for the certificate for the "exim" service. The system will attempt to verify that the certificate for the "exim" service is still valid using OCSP (Online Certificate Status Protocol). The certificate for the "exim" service passed all checks. I should mention that this is a hosted VPS server.
    0
  • cPRex Jurassic Moderator
    Great - thanks for that. That indicates the SSL is properly installed on the hostname, so your connections to cPanel and WHM, webmail, and other services are secured. By default, I would expect that to secure the connection for the hostname over port 443. Do you have any other tools like Litespeed or nginx installed?
    0
  • ChristopherChemist
    With a recent cPanel update I installed the nginx cache option. No Litespeed or other tools I can think of.
    0
  • ChristopherChemist
    I tried going to hostname.example.com:443. It returns an error page that looks like this in the address bar:
    0
  • cPRex Jurassic Moderator
    Yup, the nginx thing is a known bug that we're working on :D Getting the defaulwebpage.cgi page is what I would expect - are you getting the error page only with the https version of the hostname?
    0
  • ChristopherChemist
    I tried going to , along with the certificate error.
    0
  • ChristopherChemist
    I've used "find" to find all files ending in ".crt". Found about 30 files. I'll go through these and see if I can find the culprit. Maybe I'll have more information tomorrow. Thanks for working on this! Chris
    0
  • cPRex Jurassic Moderator
    It's interesting to me that it's redirecting to https without you needing to do anything. I'm wondering if the hostname is somehow being routed to a vhost on the server for some reason. You're always welcome to submit a ticket and we can check things directly on the system.
    0
  • ChristopherChemist
    I figured out part of my problem: the online certificate checker was also trying to see how the server behaved without SNI. Since my account is a hosted VPS, the SNI is required to get to "my part" of the server. I think that the "Without SNI" test is meaningless for my needs, and was finding certificates from the "host" that were meaningless to my account. Maybe that will help someone else.
    0
  • cPRex Jurassic Moderator
    That's definitely odd - I wouldn't expect any machine on the web in 2021 to not have SNI enabled, unless it was for a very specific configuration. I'm glad you were able to track that down!
    0

Please sign in to leave a comment.