0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-03-02 19:15:59 +00:00
termux-packages/packages/golang/src-crypto-x509-root_linux.go.patch
Leonid Pliushch 62ad45d6db fix(main/golang): specify proper path to ca certificates
Issue with CA certificates was reproducible when using termux/termux-docker
Docker image as root and running command `go build`.
2023-05-16 13:40:27 +03:00

12 lines
619 B
Diff

diff -uNr go/src/crypto/x509/root_linux.go go.mod/src/crypto/x509/root_linux.go
--- go/src/crypto/x509/root_linux.go 2023-04-26 18:32:01.000000000 +0300
+++ go.mod/src/crypto/x509/root_linux.go 2023-05-16 13:39:01.837185844 +0300
@@ -6,6 +6,7 @@
// Possible certificate files; stop after finding one.
var certFiles = []string{
+ "@TERMUX_PREFIX@/etc/tls/cert.pem", // Termux
"/etc/ssl/certs/ca-certificates.crt", // Debian/Ubuntu/Gentoo etc.
"/etc/pki/tls/certs/ca-bundle.crt", // Fedora/RHEL 6
"/etc/ssl/ca-bundle.pem", // OpenSUSE