Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
test-tls-connection(1)	    General Commands Manual	test-tls-connection(1)

NAME
       test-tls-connection -- Tests TLS	connection to a	remote endpoint

SYNOPSIS
       test-tls-connection host:port ca_certificate_file
			   [-scertificate_file--save-certificatecertificate_file]
			   [-n | --no-view-certificate]
			   [-c | --no-check-certificate]
			   [-- openssl_args ...]
       test-tls-connection [-h | --help]

DESCRIPTION
       test-tls-connection tests TLS connection	to a remote endpoint. The cer-
       tificate	provided by the	remote endpoint	can be	verified  (by  calling
       check-certificate)  or  only displayed (by using	view-certificate). Op-
       tionally, it can	also be	saved as PEM file.

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

EXAMPLES
       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

test-tls-connection	       November	28, 2025	test-tls-connection(1)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=test-tls-connection&sektion=1&manpath=FreeBSD+Ports+15.0.quarterly>

home | help