ssl-cert-check icon indicating copy to clipboard operation
ssl-cert-check copied to clipboard

No warning if certificate is for another domain

Open dburucu opened this issue 6 years ago • 4 comments

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.

dburucu avatar Jan 04 '19 08:01 dburucu

What error are you getting?

Matty9191 avatar Feb 11 '19 14:02 Matty9191

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.

dburucu avatar Feb 12 '19 05:02 dburucu

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 avatar Feb 12 '19 13:02 Matty9191

@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.

dburucu avatar Mar 08 '19 10:03 dburucu