Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I set up a test encrypted "chat" with GnuTLS, equivalent to the OpenSSL s_client and s_server using GPG credentials?

I would like to tell GnuTLS-serv and -cli to use keys generated with GPG using (example here ):

gpg --gen-key
gpg -a --export 5D1D14D8 > openpgp-server.txt
gpg --export 5D1D14D8 > openpgp-server.bin
gpg --export-secret-keys 5D1D14D8 > openpgp-server-key.bin
gpg -a --export-secret-keys 5D1D14D8 > openpgp-server-key.txt

Is it correct to launch server using a command like this: gnutls-serv --echo --pgpkeyfile openpgp-server-key.txt --pgpcertfile openpgp-server.txt?

Also, what arguments needs GnuTLS-cli to connect?

share|improve this question

migrated from Mar 5 '14 at 7:24

This question came from our site for information security professionals.

I'm not asking about how to use the GnuTLS' APIs in a certain programming language. I'm asking how to use gnutls-serv and gnutls-cli in the same way you can use OpenSSL's s_client and s_server, that is to create a cryptographic test tunnel between server and client. It's about Cryptography not about Programming or Linux since GnuTLS is exactly like OpenSSL an implementation of SSL and TLS protocols... (there are similar questions like mine, for example: link ). – hawake Mar 4 '14 at 20:24
Hi. I would like to tell him to use keys generated with GPG (see above) in a test "chat" between gnutls-cli and gnutls-serv. Thanks in advance. – hawake Mar 4 '14 at 21:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.