binance-exchange / binacpp

Binance C++ library
MIT License
212 stars 108 forks source link

ERR: SSL error: unable to get local issuer certificate (preverify_ok=0;err=20;depth=1) #14

Closed franklyxg closed 6 years ago

franklyxg commented 6 years ago

Hi,

Sorry , I am new to this and curl/ websocket/openssl. When I run the example_userStream.cpp, i met the problem:

[2018/01/16 18:41:32:4003] ERR: SSL error: unable to get local issuer certificate (preverify_ok=0;err=20;depth=1)

and there is no call back event received.

Could you indicate where the problem is?

Thanks, Frank

franklyxg commented 6 years ago

I found it maybe a Libwebsocket issue. Should Libwebsocket not enable ssl?

franklyxg commented 6 years ago

it is a openssl issue, need a ca for the client.