gnutls_cipher_list - Linux


Overview

gnutls_cipher_list lists the supported cipher suites by the GnuTLS library. It is an essential tool for understanding the capabilities of the library and configuring applications that use GnuTLS.

Syntax

gnutls_cipher_list [options]

Options/Flags

  • -v, –verbose: Prints detailed information about each cipher suite.
  • -l, –list: Prints a single-line list of cipher suite names.
  • –preferred: Prints the preferred cipher suite order.

Examples

Display a list of supported cipher suites:

gnutls_cipher_list

Display detailed information about a specific cipher suite:

gnutls_cipher_list --verbose TLS1.3-AES-128-GCM-SHA256

Print a single-line list of cipher suite names:

gnutls_cipher_list --list

Get the preferred cipher suite order:

gnutls_cipher_list --preferred

Common Issues

  • Ensure that GnuTLS is properly installed before using this command.
  • The output of this command may vary depending on the version of GnuTLS being used.
  • If you encounter any errors, consult the GnuTLS documentation or the official website for support.

Integration

gnutls_cipher_list can be used to configure various applications that utilize GnuTLS for secure communication. For example, you can use the output of this command to:

  • Set the cipher suite priorities in your web server configuration.
  • Verify that your application is supporting the necessary cipher suites.
  • Troubleshoot connectivity issues by examining the supported cipher suites.

Related Commands

  • gnutls-cli: A command-line tool for testing secure connections using GnuTLS.
  • gnutls-serv: A command-line tool for running a secure server using GnuTLS.
  • GnuTLS documentation