首页 > erlang 使用ssl连接报错 TLS connection is closed

erlang 使用ssl连接报错 TLS connection is closed

证书来自于一个Apollo server,使用keytool+openssl拿到其pem

erlang中使用

{State, SslSocket} = ssl:connect(HostName, PortVal, [{cacertfile, CaFile}, {log_alert, true}, {srp_identity, {"admin", "password"}}], infinity),

来连接Apollo,CaFile为Apollo那拿到的pem,admin / password为Apollo的访问密码。连接后erlang 这边报TLS connection is closed, Apollo日志里报

javax.net.ssl.SSLException: Unexpected end of handshake data

求高人指点这种情况可能是哪里出了问题?


求答案求erlang大神。。。。。。。

【热门文章】
【热门文章】