Ecosyste.ms: Packages

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

Top 0.6% on proxy.golang.org
Top 0.1% dependent packages on proxy.golang.org
Top 0.2% dependent repos on proxy.golang.org
Top 1.8% forks on proxy.golang.org
Top 0.1% docker downloads on proxy.golang.org

proxy.golang.org : 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.HTTPChallangeHandler in your HTTP handler. See the package's README for more instruction.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/caddyserver/certmagic
Keywords: acme, automatic-https, go, golang, https, letsencrypt, tls, tls-certificate
License: Apache-2.0
Latest release: 5 months ago
First release: about 5 years ago
Namespace: github.com/caddyserver
Dependent packages: 1,656
Dependent repositories: 1,476
Stars: 4,391 on GitHub
Forks: 247 on GitHub
Docker dependents: 1,032
Docker downloads: 943,365,927
See more repository details: repos.ecosyste.ms
Funding links: https://github.com/sponsors/mholt
Last synced: 2 days ago

    Loading...
    Readme
    Loading...