Fix a few issues with ACME certs

This commit is contained in:
John Boehr 2017-11-09 13:16:06 -08:00
parent ebd0f656ed
commit bbca0bd678
No known key found for this signature in database
GPG key ID: 73B8EFB60708F699
2 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,7 @@ in
else if cfg.certificateScheme == 2
then "${cfg.certificateDirectory}/cert-${cfg.domain}.pem"
else if cfg.certificateScheme == 3
then "/var/lib/acme/${cfg.hostPrefix}.${cfg.domain}/fullchain.pem"
then "/var/lib/acme/mailserver/fullchain.pem"
else throw "Error: Certificate Scheme must be in { 1, 2, 3 }";
# key :: PATH
@ -35,6 +35,6 @@ in
else if cfg.certificateScheme == 2
then "${cfg.certificateDirectory}/key-${cfg.domain}.pem"
else if cfg.certificateScheme == 3
then "/var/lib/acme/${cfg.hostPrefix}.${cfg.domain}/key.pem"
then "/var/lib/acme/mailserver/key.pem"
else throw "Error: Certificate Scheme must be in { 1, 2, 3 }";
}