☆
11
go rejects self signed cert even with SSL_CERT_FILE set
Self-signed cert for an internal tool, OpenSSL 3.0.13. Generated a CA and a leaf with a proper SAN, works in curl with --cacert ca.crt, but the Go http client rejects it with x509: certificate signed by unknown authority. I've set SSL_CERT_FILE=/etc/certs/ca.crt and it still fails. Is there an env var Go actually respects for custom CAs, or do I have to add it to the system trust store? Debian 12 container, Go 1.22.
0 replies