diff options
-rwxr-xr-x | httpscert | 2 | ||||
-rwxr-xr-x | httpstest | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,3 +1,3 @@ #!/bin/bash -httpstest $1 | sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -text +httpstest "$@"| sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -text @@ -2,4 +2,4 @@ # usage: httpstest <domain> -openssl s_client -servername $1 -connect $1:443 </dev/null +openssl s_client -servername $1 -connect $1:${2:-443} </dev/null |