From 744e2f554650900d8676a22cd8b06d7a5dd8806b Mon Sep 17 00:00:00 2001 From: Benjamin Stigsen Date: Fri, 4 Feb 2022 01:26:50 +0100 Subject: [PATCH] Add Solus OS support --- truststore_linux.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/truststore_linux.go b/truststore_linux.go index 5110c2a..696f3cd 100644 --- a/truststore_linux.go +++ b/truststore_linux.go @@ -37,6 +37,9 @@ func init() { } else if pathExists("/etc/ca-certificates/trust-source/anchors/") { SystemTrustFilename = "/etc/ca-certificates/trust-source/anchors/%s.crt" SystemTrustCommand = []string{"trust", "extract-compat"} + } else if pathExists("/etc/ssl/certs/") { + SystemTrustFilename = "/etc/ssl/certs/%s.crt" + SystemTrustCommand = []string{"trust", "extract-compat"} } if SystemTrustCommand != nil { _, err := exec.LookPath(SystemTrustCommand[0])