GNULS Client-Server client-server authentication error

I am using two example examples given by gnutls:

  • "Simple example client with X.509 certificate support" without any changes.
  • "Echo Server with X.509 Authentication". I have created a private key "key.pem" using certtool and a self-signed certificate "cert.pem" and will use it in this example.

    The server is working correctly ... the output is as follows:

    The server is ready. Listening to port "5556"

But if I run the example client, it returns the following error:

Handshake failed GnuTLS error: TLS connection was terminated incorrectly

and the server returns:

connection to 127.0.0.1, port 58587 Acknowledgment failed (request is invalid.)

What is the problem? Do I need to change the client example? If not, how can I check the TLS handshake process and the data sent between the client and server?

+3
linux ubuntu gnutls


source to share


No one has answered this question yet

Check out similar questions:

4
Error "Violating key usage in certificate" with Subversion, VisualSVN Server
2
Could not open openssl handshake
2
openSSL: handshake failed - server cannot get client certificate
2
GnuTLS Client Certificate Authentication
1
How to connect to RESTful web service with client certificate from CentOS machine (not web server)
1
Error: Self-signed certificate in Node JS Client
1
Client-Server communication using OPENSSL (using certificate)
0
How do I form a TLS connection with RSA and GnuTLS public / private keys?
0
gnutls and openssl handshake in NGINX
0
How to connect to a specific IP and port using GnuTLS



All Articles
Loading...
X
Show
Funny
Dev
Pics