Help with: remote error: handshake failure

276 views
Skip to first unread message

Michael Daffin

unread,
Jan 14, 2015, 8:37:34 AM1/14/15
to golan...@googlegroups.com
Hey, I am trying to fetch a web page (https://robertsspaceindustries.com/) but keep getting the following error:

Code: https://play.golang.org/p/m1xlnSG8Er (go playground produces a different error probably due to security restrictions)

$ go run main.go
2015/01/14 13:27:59 Get https://robertsspaceindustries.com/: remote error: handshake failure
exit status 1

Other sites work fine with this code and I can fetch this site using curl, wget and node.js without issue.

Can anyone help me debug this problem?

James Bardin

unread,
Jan 14, 2015, 11:09:12 AM1/14/15
to golan...@googlegroups.com

Not sure what's going on there.
The server supports up to tls1.2, and shares multiple cipher suites with the Go implementation. I can also connect with openssl using one of the shared ciphers:

SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : AES256-SHA



Looks like you can connect if you limit the connection to tls1.1 (set tls.Config.MaxVersion to tls.VersionTLS11).

Sorry, I don't have time at the moment  to investigate further.

Michael Daffin

unread,
Jan 14, 2015, 2:46:52 PM1/14/15
to James Bardin, golan...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Michael Daffin

unread,
Jan 14, 2015, 2:47:23 PM1/14/15
to James Bardin, golan...@googlegroups.com
Thanks that helped. I managed to get it working by using the following:

...
tr := &http.Transport{
TLSClientConfig: &tls.Config{
MaxVersion: tls.VersionTLS11,
},
}
client := &http.Client{Transport: tr}
...

To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.

Feng Liyuan

unread,
Apr 11, 2015, 12:38:39 AM4/11/15
to golan...@googlegroups.com
I got another issue with COMODO certification(https://catchchat.catchchatchina.com/)


Head https://catchchat.catchchatchina.com/: x509: certificate signed by unknown authority
Reply all
Reply to author
Forward
0 new messages