If you add your cert to the RootCAs, you need to make sure the cert
you've created is indeed a CA itself. afaik, you need fields such as:
KeyUsage: x509.KeyUsageKeyEncipherment |
x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
IsCA: true,
BasicConstraintsValid: true,
also, if the client side is in Go too you could run the client side
with InsecureSkipVerify set in the config
(
http://golang.org/pkg/crypto/tls/#Config).