mirror of
https://github.com/yusing/godoxy.git
synced 2026-02-23 02:44:52 +01:00
Previously, ACME keys were stored at a single default path regardless of which CA directory URL was configured. This caused key conflicts when using multiple different ACME CAs. Now, the key path is derived from a SHA256 hash of the CA directory URL, allowing each CA to have its own key file: - Default CA (Let's Encrypt): certs/acme.key - Custom CA: certs/acme_<url_hash_16chars>.key This enables running certificates against multiple ACME providers without key collision issues.
8 lines
146 B
Go
8 lines
146 B
Go
package autocert
|
|
|
|
const (
|
|
certBasePath = "certs/"
|
|
CertFileDefault = certBasePath + "cert.crt"
|
|
KeyFileDefault = certBasePath + "priv.key"
|
|
)
|