I am trying to make an https request in go against a URL that has an incomplete TLS certificate chain. Here the relevant part from Qualys testing tool , which shows the certificate chain, is missing the "Symantec Class 3 Secure Server CA - G4":

Most browsers handle this, apparently because they have Symantec pre-loading? However, a simple golang example will failx509: certificate signed by unknown authority
package main
import (
"log"
"net/http"
)
func main() {
_, err := http.Get("https://www.example.com/")
if err != nil {
log.Fatal(err)
} else {
log.Println("Success!")
}
}
I notified the site in question, but is there a way I can insert the missing certificate into the certificate store using ?
source
share