OS Manuals

/usr/bin/gnutls-serv

Command line tools for TLS protocol

From gnutls-utils 3.8.13-r3 (os), captured 2026-11-05 by running gnutls-serv --help (exit 0). permalink

gnutls-serv - GnuTLS server
Usage:  gnutls-serv [ -<flag> [<val>] | --<name>[{=| }<val>] ]...

None:

   -d, --debug=num            Enable debugging
				- it must be in the range:
				  0 to 9999
       --sni-hostname=str     Server's hostname for server name extension
       --sni-hostname-fatal   Send fatal alert on sni-hostname mismatch
       --alpn=str             Specify ALPN protocol to be enabled by the server
       --alpn-fatal           Send fatal alert on non-matching ALPN name
       --noticket             Don't accept session tickets
       --earlydata            Accept early data
       --maxearlydata=num     The maximum early data size to accept
				- it must be in the range:
				  1 to 2147483648
       --nocookie             Don't require cookie on DTLS sessions
   -g, --generate             Generate Diffie-Hellman parameters
   -q, --quiet                Suppress some messages
       --nodb                 Do not use a resumption database
       --http                 Act as an HTTP server
       --echo                 Act as an Echo server
       --crlf                 Do not replace CRLF by LF in Echo server mode
   -u, --udp                  Use DTLS (datagram TLS) over UDP
       --mtu=num              Set MTU for datagram TLS
				- it must be in the range:
				  0 to 17000
       --srtp-profiles=str    Offer SRTP profiles
   -a, --disable-client-cert  Do not request a client certificate
				- prohibits the option 'require-client-cert'
   -r, --require-client-cert  Require a client certificate
       --verify-client-cert   If a client certificate is sent then verify it
       --compress-cert=str    Compress certificate
   -b, --heartbeat            Activate heartbeat support
       --x509fmtder           Use DER format for certificates to read from
       --priority=str         Priorities string
       --dhparams=file        DH params file to use
				- file must pre-exist
       --x509cafile=str       Certificate file or PKCS #11 URL to use
       --x509crlfile=file     CRL file to use
				- file must pre-exist
       --x509keyfile=str      X.509 key file or PKCS #11 URL to use
       --x509certfile=str     X.509 Certificate file or PKCS #11 URL to use
       --rawpkkeyfile=str     Private key file (PKCS #8 or PKCS #12) or PKCS #11 URL to use
       --rawpkfile=str        Raw public-key file to use
				- requires the option 'rawpkkeyfile'
       --srppasswd=file       SRP password file to use
				- file must pre-exist
       --srppasswdconf=file   SRP password configuration file to use
				- file must pre-exist
       --pskpasswd=file       PSK password file to use
				- file must pre-exist
       --pskhint=str          PSK identity hint to use
       --ocsp-response=str    The OCSP response to send to client
       --ignore-ocsp-response-errors  Ignore any errors when setting the OCSP response
   -p, --port=num             The port to connect to
   -l, --list                 Print a list of the supported algorithms and modes
       --provider=file        Specify the PKCS #11 provider library
				- file must pre-exist
       --keymatexport=str     Label used for exporting keying material
       --keymatexportsize=num Size of the exported keying material
       --recordsize=num       The maximum record size to advertise
				- it must be in the range:
				  0 to 16384
       --httpdata=file        The data used as HTTP response
				- file must pre-exist
       --timeout=num          The timeout period for server
       --attime=str           Perform validation at the timestamp instead of the system time

Version, usage and configuration options:

   -v, --version[=arg]        output version information and exit
   -h, --help                 display extended usage information and exit
   -!, --more-help            extended usage information passed thru pager

Options are specified by doubled hyphens and their name or by a single
hyphen and the flag character.

Server program that listens to incoming TLS connections.
Note that this program is only meant for testing and diagnostic purposes.

Please send bug reports to:  <bugs@gnutls.org>
Options (55)
OptionDescriptionSource
-d, --debug numEnable debugging.help + man
--sni-hostname strServer's hostname for server name extension.help + man
--sni-hostname-fatalSend fatal alert on sni-hostname mismatch.help + man
--alpn strSpecify ALPN protocol to be enabled by the server.help + man
--alpn-fatalSend fatal alert on non-matching ALPN name.help + man
--noticketDon't accept session tickets.help + man
--earlydataAccept early data.help + man
--maxearlydata numThe maximum early data size to accept.help + man
--nocookieDon't require cookie on DTLS sessions.help + man
-g, --generateGenerate Diffie-Hellman parameters.help + man
-q, --quietSuppress some messages.help + man
--nodbDo not use a resumption database.help + man
--httpAct as an HTTP server.help + man
--echoAct as an Echo server.help + man
--crlfDo not replace CRLF by LF in Echo server mode.help + man
-u, --udpUse DTLS (datagram TLS) over UDP.help + man
--mtu numSet MTU for datagram TLS.help + man
--srtp-profiles strOffer SRTP profiles.help + man
-a, --disable-client-certDo not request a client certificate.help + man
-r, --require-client-certRequire a client certificate.help + man
--verify-client-certIf a client certificate is sent then verify it.help + man
--compress-cert strCompress certificate.help + man
-b, --heartbeatActivate heartbeat support.help + man
--x509fmtderUse DER format for certificates to read from.help + man
--priority strPriorities string.help + man
--dhparams fileDH params file to use.help + man
--x509cafile strCertificate file or PKCS #11 URL to use.help + man
--x509crlfile fileCRL file to use.help + man
--x509keyfile strX.509 key file or PKCS #11 URL to use.help + man
--x509certfile strX.509 Certificate file or PKCS #11 URL to use.help + man
--rawpkkeyfile strPrivate key file (PKCS #8 or PKCS #12) or PKCS #11 URL to use.help + man
--rawpkfile strRaw public-key file to use.help + man
--srppasswd fileSRP password file to use.help + man
--srppasswdconf fileSRP password configuration file to use.help + man
--pskpasswd filePSK password file to use.help + man
--pskhint strPSK identity hint to use.help + man
--ocsp-response strThe OCSP response to send to client.help + man
--ignore-ocsp-response-errorsIgnore any errors when setting the OCSP response.help + man
-p, --port numThe port to connect to.help + man
-l, --listPrint a list of the supported algorithms and modes.help + man
--provider fileSpecify the PKCS #11 provider library.help + man
--keymatexport strLabel used for exporting keying material.help + man
--recordsize numThe maximum record size to advertise.help + man
--httpdata fileThe data used as HTTP response.help + man
--timeout numThe timeout period for server.help + man
--attime strPerform validation at the timestamp instead of the system time.help + man
-v, --version argoutput version information and exithelp + man
-h, --helpdisplay extended usage information and exithelp + man
--more-helpPass the extended usage information through a pager.help + man
--pgpkeyfile filePGP Key file to use. (in the manual page but not in --help)man
--x509dsakeyfileThis is an alias for the --x509keyfile option. (in the manual page but not in --help)man
--x509dsacertfileThis is an alias for the --x509certfile option. (in the manual page but not in --help)man
--x509ecckeyfileThis is an alias for the --x509keyfile option. (in the manual page but not in --help)man
--x509ecccertfileThis is an alias for the --x509certfile option. (in the manual page but not in --help)man
--keymatexportsize numSize of the exported keying material. (in the manual page but not in --help)man
Examples (30) from the manual page, untested

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.