forked from TrueCloudLab/lego
feat: add LEGO_CERT_PEM_PATH and LEGO_CERT_PFX_PATH (#1609)
This commit is contained in:
parent
b4a942def7
commit
2c0aaf7fef
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,8 @@ const (
|
||||||
renewEnvCertDomain = "LEGO_CERT_DOMAIN"
|
renewEnvCertDomain = "LEGO_CERT_DOMAIN"
|
||||||
renewEnvCertPath = "LEGO_CERT_PATH"
|
renewEnvCertPath = "LEGO_CERT_PATH"
|
||||||
renewEnvCertKeyPath = "LEGO_CERT_KEY_PATH"
|
renewEnvCertKeyPath = "LEGO_CERT_KEY_PATH"
|
||||||
|
renewEnvCertPEMPath = "LEGO_CERT_PEM_PATH"
|
||||||
|
renewEnvCertPFXPath = "LEGO_CERT_PFX_PATH"
|
||||||
)
|
)
|
||||||
|
|
||||||
func createRenew() *cli.Command {
|
func createRenew() *cli.Command {
|
||||||
|
@ -148,6 +150,8 @@ func renewForDomains(ctx *cli.Context, client *lego.Client, certsStorage *Certif
|
||||||
meta[renewEnvCertDomain] = domain
|
meta[renewEnvCertDomain] = domain
|
||||||
meta[renewEnvCertPath] = certsStorage.GetFileName(domain, ".crt")
|
meta[renewEnvCertPath] = certsStorage.GetFileName(domain, ".crt")
|
||||||
meta[renewEnvCertKeyPath] = certsStorage.GetFileName(domain, ".key")
|
meta[renewEnvCertKeyPath] = certsStorage.GetFileName(domain, ".key")
|
||||||
|
meta[renewEnvCertPEMPath] = certsStorage.GetFileName(domain, ".pem")
|
||||||
|
meta[renewEnvCertPFXPath] = certsStorage.GetFileName(domain, ".pfx")
|
||||||
|
|
||||||
return launchHook(ctx.String("renew-hook"), meta)
|
return launchHook(ctx.String("renew-hook"), meta)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue