Linux – How to test an installed SSL Certificate before a domain resolves to the server

dns-zonelinuxsslssl-certificate

Is it posisble to test an SSL Cert through a browser that is installed on a server before the DNS has been updated to point that domain to its new server?

I am looking to do something like what the DigiCert online SSL Checker does.

I have a host "example.com" resolving to Server A.

I purchased an SSL Cert and installed it on Server B where the host will soon resolve.

Before I update the DNS to re-point example.com from Server A over to Server B, I want to know if the SSL Certificate works properly with its installed key, certificate, and bundle.

Is that possible to do?

Best Answer

I would suggest testssl.sh for a fairly comprehensive sanity check of your TLS/SSL setup.

You can direct it to a specific IP rather than resolving the name, like so:

./testssl.sh --ip 192.0.2.1 https://www.example.com/


In addition to this, for instance if you want to do functional tests with a web browser or other software that may not have similar functionality, simply override name resolution using /etc/hosts while doing the tests.

Related Topic