As with most HTTP servers, the Go tls server implementation accepts only one file for a certificate. From the documentation net/http:
If the certificate is signed by a certification authority, certFile must be a concatenation of the server certificate, any intermediate products, and the CA certificate.
All you have to do is merge the files together.
source
share