Registry / networking / sagernet-certmagic

sagernet-certmagic

JSON →
library0.25.2gogounverified

Automates TLS certificate obtaining, renewal, and HTTPS best practices including OCSP stapling and HTTP->HTTPS redirects.

go get github.com/sagernet/certmagic
INSTALL
IMPORT
SIG · SAGERNET-CERTMAGIC
S
sagernet-certmagic
networkinggov0.25.2
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.

certmagic
github.com/sagernet/certmagic

Serve HTTPS with automatic certificate management

package main import ( "log" "net/http" "github.com/sagernet/certmagic" ) func main() { certmagic.HTTPS([]string{"example.com"}, http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello, TLS!")) })) log.Fatal(http.ListenAndServe(":443", nil)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.25.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
sagernet-certmagic — go get sagernet-certmagic · libregistry