added openssl_remote_cert_check

master
zeus 2023-01-05 13:48:29 +01:00
parent 67009e4cd9
commit d4757facde
1 changed files with 3 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#!/bin/bash
# check cert (and not only a successfully connect) of a remote server with openssl:
CHECK_HOST="google.com:443"; echo -n | openssl s_client -connect $CHECK_HOST | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | openssl x509 -text