You only need to set tls.Config.InsecureSkipVerify. Don't set Certificates
and ServerName.
Of course, you should not use InsecureSkipVerify for using a third-party
API at all. InsecureSkipVerify is really only meant for localhost testing.
You want to use https://golang.org/pkg/crypto/x509/#NewCer
Hi guys,
I am currently working on integration of my system with 3rd party api. They
provide us a test server and SSL certificates for it. When I try to use
golang to connect it I am getting errror : *remote error: bad certificate
*where
code in php works with the same certificates. Can anyone