inconshreveable/ngrok — pull request #140 by rjocoleman (2014-06-12 05:53:56+00:00)
Title: client: add support for SHA-2

When using the client to connect to a self-hosted `ngrokd` that's using a leaf or intermediate certificate with a SHA-2 hash a `Failed to read message: remote error: bad certificate` is received by the server.

This is because SHA-2 isn't in `crypto/tls` this PR remedies that.

Further detail on this is here:
http://bridge.grumpy-troll.org/2014/05/golang-tls-comodo/
https://groups.google.com/forum/#!topic/Golang-nuts/hqm_ssUNUtI

I just had a certificate issued that triggers this issue - coincidentally a Comodo Positive SSL.