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?
gnutls-serv
andgnutls-cli
in the same way you can use OpenSSL'ss_client
ands_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 ).gnutls-cli
andgnutls-serv
. Thanks in advance.