https client issue - remote error: tls: handshake failure

polaris · · 1631 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I am hitting &#39;remote error: tls: handshake failure&#39;:</p> <pre><code>~/go/bin/aci-tls 10.0.0.201 user pass 2016/12/20 18:12:04 post error: Post https://10.0.0.201/api/aaaLogin.json: remote error: tls: handshake failure </code></pre> <p>Source code is simple https client: <a href="https://play.golang.org/p/cqPT0oR__q" rel="nofollow">https://play.golang.org/p/cqPT0oR__q</a></p> <p>OpenSSL seems happy:</p> <pre><code>$ openssl s_client -connect 10.0.0.201:443 (snip) SSL handshake has read 1383 bytes and written 431 bytes --- New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-GCM-SHA384 Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE No ALPN negotiated SSL-Session: Protocol : TLSv1.2 Cipher : ECDHE-RSA-AES256-GCM-SHA384 (snip) </code></pre> <p>Tested on:</p> <pre><code>$ go version go version go1.7.4 linux/386 C:\&gt;go version go version go1.7.4 windows/amd64 </code></pre> <p>How can I further troubleshoot this issue?</p> <hr/>**评论:**<br/><br/>NotTheKyros: <pre><p>I had this exact same error when I was connecting to a ssl port without ssl. </p></pre>udhos: <pre><p>I have found the fix:</p> <p><a href="http://stackoverflow.com/questions/41250665/go-https-client-issue-remote-error-tls-handshake-failure" rel="nofollow">http://stackoverflow.com/questions/41250665/go-https-client-issue-remote-error-tls-handshake-failure</a></p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1631 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传