← 返回命令列表

Linux command

gnutls-cli 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Connect to TLS server

gnutls-cli [example.com]

Connect on specific port

gnutls-cli -p [443] [example.com]

Show certificate chain

gnutls-cli --print-cert [example.com]

Test with specific protocol

gnutls-cli --priority="NORMAL:-VERS-TLS-ALL:+VERS-TLS1.3" [example.com]

Start with STARTTLS

gnutls-cli --starttls-proto=[smtp] [mail.example.com]:587

Verify certificate only

gnutls-cli --tofu [example.com] < /dev/null

说明

gnutls-cli is a TLS/SSL client for testing and debugging secure connections. It connects to servers, displays certificate information, and allows testing of various TLS configurations. The tool helps diagnose certificate issues, protocol support, and cipher suite negotiation. It can also serve as a simple secure client for interactive protocols.

参数

-p _port_
Connect to port.
--print-cert
Print server certificate.
--starttls-proto _proto_
Use STARTTLS (smtp, pop3, imap, ftp, xmpp, ldap).
--priority _string_
Priority string for cipher selection.
-V, --verbose
Verbose output.
--tofu
Trust on first use.
--insecure
Don't verify certificate.
-x, --x509cafile _file_
CA certificate file.
--benchmark-ciphers
Benchmark cipher performance.
--list
List supported algorithms.

FAQ

What is the gnutls-cli command used for?

gnutls-cli is a TLS/SSL client for testing and debugging secure connections. It connects to servers, displays certificate information, and allows testing of various TLS configurations. The tool helps diagnose certificate issues, protocol support, and cipher suite negotiation. It can also serve as a simple secure client for interactive protocols.

How do I run a basic gnutls-cli example?

Run `gnutls-cli [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p _port_ do in gnutls-cli?

Connect to port.