Page 1 of 1

check_ssl_cert issues with URLs that contains port numbers

Posted: Tue Jun 18, 2019 7:32 pm
by humblestudent
Hello community,

I am trying to use the check_ssl_cert to monitor expiring certificates within my organization. I am able to use the plugin just fine with standard URL schemes i.e. domain.name.com, etc. However, some websites our servers host has URL schemas with the port number within the URL i.e. domain.name:8443, etc.

I tried running the following commands in different variations to no avail.

./check_ssl_cert -p 8443 -w 4 -c 2 -H domain.name:8443
./check_ssl_cert -p 8443 -w 4 -c 2 -H "domain.name:8443"
./check_ssl_cert -p 8443 --ssl3 -w 4 -c 2 -H domain.name:8443
./check_ssl_cert -p 8443 --tls1_3 -w 4 -c 2 -H domain.name:8443

Any tips or recommendations on how to use check_ssl_cert with these domains schemas?

Looking forward to your reply.

Sincerely,

A humble student.

Re: check_ssl_cert issues with URLs that contains port numbe

Posted: Wed Jun 19, 2019 8:58 am
by scottwilkerson
If you are passing the port with the -p flag, you would not add it to the domain in the -H flag

something like

Code: Select all

./check_ssl_cert -p 8443 -w 4 -c 2 -H domain.name
./check_ssl_cert -p 8443 --ssl3 -w 4 -c 2 -H domain.name
./check_ssl_cert -p 8443 --tls1_3 -w 4 -c 2 -H domain.name