I'm having trouble accessing https urls with net/http package.
Here is a working error example:
package main import ( "fmt" "net/http" ) func main() { _, err := http.Get("https://api.bitfinex.com/v1/book/ltcbtc") if err != nil { fmt.Println(err) } }
This program gives an error,
Get https://api.bitfinex.com/v1/book/ltcbtc: crypto/rsa: verification error
docs for net/http clearly stated
Get, Head, Post and PostForm make HTTP requests (or HTTPS)
but I can not find documentation about this error.
the source for crypto/rsa only this says an error:
So I'm not sure where to go from here. Iβm sure itβs not their fault, because Chrome is happy with its https certificate.
I also tried using Client with tls.Config , which has InsecureSkipVerify set to true , but this did not seem to close this error.
source share