gnutls_cipher_list - Linux


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.


gnutls_cipher_list [options]


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


Display a list of supported cipher suites:


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.


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