Clear issuer account URL if the directory and account URL's hosts differ

Signed-off-by: James Munnelly <james@munnelly.eu>
This commit is contained in:
James Munnelly 2019-01-17 14:36:33 +00:00
parent 3767a6df23
commit 425f9c757a

View File

@ -154,6 +154,7 @@ func (a *Acme) Setup(ctx context.Context) error {
if parsedAccountURL.Host != parsedServerURL.Host {
glog.Infof("ACME server URL host and ACME private key registration " +
"host differ. Re-checking ACME account registration.")
a.issuer.GetStatus().ACMEStatus().URI = ""
}
// registerAccount will also verify the account exists if it already