[Help-gnutls] GnuTLS + GnuPG

Mario Lenz mario.lenz at gmx.net
Wed Jul 5 19:34:38 CEST 2006


Hi!

I'm new to this mailing list and just wanted to ask a question. (Please
don't hit me if it's a dumb one, but I just don't get it. I neither
found anything on the web.)

Well, I'm playing around with GnuTLS a little bit just to find out more
about C programming and secure network connections. Well, I wanted to
write a small program like an echo server with OpenPGP authentication.
But I dont't even get gnutls-serv to work! I used a test key:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.3 (GNU/Linux)

mIsERKvW5QEEALF5CLpZ8LdKsfhIBT8wbR/4S95TsQRI8VCNljcuP85pYeGA2yO8
qgT/mkq9IPSL/jiMufTnz7FCR20lC2RXkh50c0Gohj5fVgMXeRKP8fex0AKRkOdX
Y6E1cMTbVzdzm3EEN4L1AmqzLlpZ1rS/Up2UavqnAKoV7CbN924hpou3AAYptDJN
YXJpbyBUZXN0ICh3aXRob3V0IGEgcGFzc3BocmFzZSkgPG1hcmlvQHRlc3QubmV0
Poi2BBMBAgAgBQJEq9blAhsvBgsJCAcDAgQVAggDBBYCAwECHgECF4AACgkQ7I2d
IshvCJtj4wQApqVJ6VMjoc4SnUn4j+bWwVW8pHu09C27Jl0UvPuAGB4M6sfJy/5P
fv16FC/gbhXf7T4hZEJrV7TBiwBUt4fk8mpwMrv+8Y3GMQmWbvoGhjoMF1chSJmY
8/+T7f7Er++LtPh3fn0sT0qxYgCp5cQPbc4nAg0RpVc6TxCAFFyYRFI=
=xVNR
-----END PGP PUBLIC KEY BLOCK-----

-----BEGIN PGP PRIVATE KEY BLOCK-----
Version: GnuPG v1.4.3 (GNU/Linux)

lQHWBESr1uUBBACxeQi6WfC3SrH4SAU/MG0f+EveU7EESPFQjZY3Lj/OaWHhgNsj
vKoE/5pKvSD0i/44jLn058+xQkdtJQtkV5IedHNBqIY+X1YDF3kSj/H3sdACkZDn
V2OhNXDE21c3c5txBDeC9QJqsy5aWda0v1KdlGr6pwCqFewmzfduIaaLtwAGKQAD
/ib1GuQ5NNcQZYFtd8kwF/RJPFyCwvRz6gtwQDGThKPxq1b20nH9tO5dkkJbd5/T
zaiCyylFnfs0AzDvJ/bOijhFD8seJsp8J0xWVVsEIuEeHgUDs/mQhP9bv9acCCfl
YfPRtGsE+1Fjvet6mbCKx/lx8uVU/ayoqfaD/TJIE+CRAgDFEGoo/sO9AaXTuVeM
BSeElAr/3HWDrCwlAPwrzCSsCmh9OBmgcIWpQ1YIo/I7UQ9o3EBU9NtH8uiafQXp
jjuDAgDmjKv2LBkXaHNIrKqbv7IyQW7ynQDsBD8ZIkxagl0H70AEkJ494BzuNH4/
IUjvVh3PH8IHwRGUuhQTFWa22jS9Af4/liWSrX9feQKMDrxuway0NkcYxY1eiXhA
Uf0pPrNxF66nTuCHiejSHhomO78mZYxSaYrPcUstwKVvI5GImDK/nAG0Mk1hcmlv
IFRlc3QgKHdpdGhvdXQgYSBwYXNzcGhyYXNlKSA8bWFyaW9AdGVzdC5uZXQ+iLYE
EwECACAFAkSr1uUCGy8GCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDsjZ0iyG8I
m2PjBACmpUnpUyOhzhKdSfiP5tbBVbyke7T0LbsmXRS8+4AYHgzqx8nL/k9+/XoU
L+BuFd/tPiFkQmtXtMGLAFS3h+TyanAyu/7xjcYxCZZu+gaGOgwXVyFImZjz/5Pt
/sSv74u0+Hd+fSxPSrFiAKnlxA9tzicCDRGlVzpPEIAUXJhEUg==
=n5xc
-----END PGP PRIVATE KEY BLOCK-----

and tried the files src/openpgp/pub.asc and src/openpgp/sec.asc, but it
didn't work.

starting: gnutls-serv --echo --pgpkeyfile $PRIVKEY --pgpcertfile
$PUBKEY 
(PRIVKEY and PUBKEY beeing the keys I included in this mail or the ones
under src/openpgp/)

Then gnutls-cli -p 5556 localhost gives me "Error: Could not negotiate a
supported cipher suite." on the server side. I tried it with several
combinations of --kx and all those parameters on both the client and the
server side.


Thanks in advance

   Mario






More information about the Gnutls-help mailing list