Registry / crypto / breml-rootcerts

breml-rootcerts

JSON →
library0.3.5gogounverified

Embeds Mozilla's CA certificate list for use when system certificates are unavailable.

go get github.com/breml/rootcerts
INSTALL
IMPORT
SIG · BREML-ROOTCERTS
B
breml-rootcerts
cryptogov0.3.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rootcerts
github.com/breml/rootcerts

Imports the rootcerts package to enable embedded CA certificates for TLS connections.

package main import ( "crypto/tls" "fmt" _ "github.com/breml/rootcerts" ) func main() { // The embedded certificates are automatically used by crypto/tls conn, err := tls.Dial("tcp", "example.com:443", nil) if err != nil { fmt.Println("Error:", err) return } fmt.Println("Connected to:", conn.RemoteAddr()) }
Debug
Known issues
gotchaIncreases binary size by ~250 KB
fix
Only import in main packages to avoid unnecessary bloat in libraries.
affects: all
Upgrade
Version history
0.3.5latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
breml-rootcerts — go get breml-rootcerts · libregistry