help-gnutls
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to run the ex-serv-psk.c example


From: Peter Penzov
Subject: How to run the ex-serv-psk.c example
Date: Fri, 2 Mar 2012 03:56:21 +0200

I'm trying to run the example ex-serv-psk.c from gnutls 3.0.14.

I generated self signed certificate using these commands:

certtool --generate-privkey --outfile key.pem
certtool --generate-self-signed --load-privkey key.pem --outfile cert.pem
 I compiled the examples ex-serv-psk.c and ex-client-psk.c. When I try to run them I get this error:

address@hidden test]# ./server
Server ready. Listening to port '5556'.

- connection from 127.0.0.1, port 38184
*** Handshake has failed (The TLS connection was non-properly terminated.)


address@hidden test]# ./client
*** Handshake failed
GnuTLS error: Insufficient credentials for that request.
address@hidden test]#

Is it do I need something else to run these examples?
I modified some o
#define KEYFILE "key.pem"
#define CERTFILE "cert.pem"
#define CAFILE "/etc/ssl/certs/ca-certificates.crt"
#define CRLFILE "crl.pem"

How I must create CAFILE and CRLFILE? I created self-signed certificate. Do I need these files in this case?

Best wishes

reply via email to

[Prev in Thread] Current Thread [Next in Thread]