小武哥
小武哥

Reputation: 446

openssl error SSL_ERROR_SSL in c++ application

When I use openssl to create an ssl base server-client program, the SSL_accept in the server side and the SSL_connect in the client side are both return an error named 'SSL_ERROR_SSL', how can I fix this?

Upvotes: 2

Views: 5177

Answers (1)

SKi
SKi

Reputation: 8466

Check that OpenSSL_add_all_algorithms() is called after SSL_library_init().

Many chipher suites requires a certificate before the suite can be used. Please check that certificates exists.

Upvotes: 2

Related Questions