diff options
author | Florian Pritz <bluewind@xinu.at> | 2020-04-01 09:32:46 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2020-04-01 09:32:46 +0200 |
commit | 9932d6b520b6e3d9dfd25b3f61d3bdc9fe78f3c4 (patch) | |
tree | 65c58c3f87bb92dc812f7ddb4e42b74bb3fc3bd9 | |
parent | d6111c5f6209326cc30a49b4d96278e862262e62 (diff) | |
download | bin-9932d6b520b6e3d9dfd25b3f61d3bdc9fe78f3c4.tar.gz bin-9932d6b520b6e3d9dfd25b3f61d3bdc9fe78f3c4.tar.xz |
httpstest/httpscert: Add parameter for port
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-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 |