MCPcopy
hub / github.com/caddyserver/certmagic / SitePrivateKey

Method SitePrivateKey

storage.go:240–243  ·  view source on GitHub ↗

SitePrivateKey returns the path to the private key file for domain that is associated with the certificate from the given issuer with the given issuerKey.

(issuerKey, domain string)

Source from the content-addressed store, hash-verified

238// that is associated with the certificate from the given issuer with
239// the given issuerKey.
240func (keys KeyBuilder) SitePrivateKey(issuerKey, domain string) string {
241 safeDomain := keys.Safe(domain)
242 return path.Join(keys.CertsSitePrefix(issuerKey, domain), safeDomain+".key")
243}
244
245// SiteMeta returns the path to the metadata file for domain that
246// is associated with the certificate from the given issuer with

Callers 10

saveCertResourceMethod · 0.80
loadCertResourceMethod · 0.80
TestPrefixAndKeyBuildersFunction · 0.80
obtainCertMethod · 0.80
reusePrivateKeyMethod · 0.80
renewCertMethod · 0.80
RevokeCertMethod · 0.80
deleteSiteAssetsMethod · 0.80

Calls 2

SafeMethod · 0.95
CertsSitePrefixMethod · 0.95

Tested by 1

TestPrefixAndKeyBuildersFunction · 0.64