test-tls-connection —
Tests TLS connection to a remote
endpoint
test-tls-connection |
host:port ca_certificate_file
[-s certificate_file |
--save-certificate
certificate_file]
[-n | --no-view-certificate]
[-c |
--no-check-certificate]
[-- openssl_args ...] |
test-tls-connection |
[-h | --help] |
test-tls-connection tests TLS connection
to a remote endpoint. The certificate provided by the remote endpoint can be
verified (by calling check-certificate) or only displayed (by using
view-certificate). Optionally, it can also be saved as PEM file.
The following options are available:
- host:port
- Specifies hostname or IP address, and TCP port number of the remote
endpoint to connect to.
- ca_certificate_file
- Specifies the CA certificate to verify the certificate of the remote
endpoint.
-s
certificate_file |
--save-certificate
certificate_file
- Specifies a file name to store the certificate of the remote endpoint (as
PEM file).
- -- openssl_args ...
- Specifies optional OpenSSL arguments. All arguments after -- are passed to
OpenSSL.
-n |
--no-view-certificate
- Do not run view-certificate on the received certificate of the remote
endpoint.
-c |
--no-check-certificate
- Do not run check-certificate on the received certificate of the remote
endpoint.
-h |
--help
- Prints command-line parameters.
- test-tls-connection www.heise.de:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt
-
- test-tls-connection www.nntb.no:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt
--no-view-certificate
-
- test-tls-connection www.nntb.no:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt
--no-check-certificate
-
- test-tls-connection www.nntb.no:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt -save-certificate
www.nntb.no.crt
-
- test-tls-connection www.heise.de:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt -n -c -s
www.heise.de.crt
-
- test-tls-connection www.ietf.org:443
/usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt -s www.ietf.org.crt
-
- test-tls-connection www.dnb.no:443
/usr/share/ca-certificates/mozilla/Buypass_Class_3_Root_CA.crt -s
www.dnb.no
-
- test-tls-connection --help
-
- test-tls-connection -h
-