ssl-cert-check
ssl-cert-check copied to clipboard
No warning if certificate is for another domain
I have a domain with wrong but not expired certificate for another domain. This must be send a warning! e.g. Domain: xxxxx.notmydomain.de Certificate: yyyyy.notmydomain.de this says me, its ok.
What error are you getting?
I'm not getting any errors. The program tells me that everything is fine. It doesn't validates, that a certificate is or is not for a domain/subdomain.
Can you add a set -vx to the top of the script and paste the output to the issue? Also, can you send me the temporary files that were created? You will need to comment out the trap line for that to work.
@Matty9191 I didn't understand what to do.
you can test it with this Domain: api.microsoft.com 443
It shows api.microsoft.com:443 Microsoft Corpora Valid May 15 2020 434
but its not valid because the certificate is for *.oneroute.microsoft.com.