An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

github.com/caddyserver/certmagic

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.HTTPChallengeHandler in your HTTP handler. See the package's README for more instruction.

Ecosystem
proxy.golang.org
Latest Release
v0.25.2
18 days ago
Versions
80
Dependent Packages
1,656
Dependent Repos
1,476
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/caddyserver/certmagic
spec
License Apache-2.0
Namespace github.com/caddyserver
First Release almost 7 years ago
Last Synced 2 days ago
Repository
Stars 5,328 on GitHub
Forks 311 on GitHub
Docker Dependents 1,032
Docker Downloads 943,366,650
Commits 347
Committers 55
Avg per Author 6.309
DDS 0.205
Rankings on proxy.golang.org
Overall Top 0.6%
Dependent packages Top 0.1%
Dependent repos Top 0.2%
Forks Top 1.8%
Docker downloads Top 0.1%