OpenSSL ssl_accept() error 5

前端 未结 2 1376
没有蜡笔的小新
没有蜡笔的小新 2020-12-06 20:12

I have scoured Stack Overflow and the internet, but I have been unable to locate an answer to why ssl_accept() keeps returning:

[DEBUG] SSL_accept() : Failed         


        
2条回答
  •  忘掉有多难
    2020-12-06 20:22

    [DEBUG] Error string : error:00000005:lib(0):func(0):DH lib

    The error happened during the Diffie-Hellman Key Exchange, e.g. where the peers tried to generate the keys for the connection. There might be several reasons for this, like invalid DH parameters given on the server side. With the your current code it is hard to see where the error actually is, but I guess is somewhere in setting up your ctx, so maybe should show the relevant parts of the code.

提交回复
热议问题