proxy.golang.org : github.com/khulnasoft-lab/certmagic : v0.21.2
Package certmagic automates the obtaining and renewal of TLS certificates, including TLS & HTTPS best practices such as robust OCSP stapling, caching, HTTP->HTTPS redirects, and more. Its high-level API serves your HTTP handlers over HTTPS if you simply give the domain name(s) and the http.Handler; CertMagic will create and run the HTTPS server for you, fully managing certificates during the lifetime of the server. Similarly, it can be used to start TLS listeners or return a ready-to-use tls.Config -- whatever layer you need TLS for, CertMagic makes it easy. See the HTTPS, Listen, and TLS functions for that. If you need more control, create a Cache using NewCache() and then make a Config using New(). You can then call Manage() on the config. But if you use this lower-level API, you'll have to be sure to solve the HTTP and TLS-ALPN challenges yourself (unless you disabled them or use the DNS challenge) by using the provided Config.GetCertificate function in your tls.Config and/or Config.HTTPChallangeHandler in your HTTP handler. See the package's README for more instruction.
Registry -
Documentation -
Download -
JSON
purl: pkg:golang/github.com/khulnasoft-lab/[email protected]
Published:
Indexed:
- github.com/khulnasoft-lab/zerossl v0.1.0
- github.com/klauspost/cpuid/v2 v2.2.7
- github.com/libdns/libdns v0.2.2
- github.com/mholt/acmez/v2 v2.0.2
- github.com/miekg/dns v1.1.59
- github.com/zeebo/blake3 v0.2.3
- go.uber.org/multierr v1.11.0
- go.uber.org/zap v1.27.0
- golang.org/x/crypto v0.23.0
- golang.org/x/mod v0.17.0
- golang.org/x/net v0.25.0
- golang.org/x/sync v0.7.0
- golang.org/x/sys v0.20.0
- golang.org/x/text v0.15.0
- golang.org/x/tools v0.21.0