Set a keyType to ACME if the account is stored with no KeyType

This commit is contained in:
NicoMen 2018-08-08 07:58:03 +02:00 committed by Traefiker Bot
parent 2d449f63e0
commit d04b4fa2cc
3 changed files with 89 additions and 0 deletions

View file

@ -202,6 +202,9 @@ func (a *ACME) leadershipListener(elected bool) error {
}
needRegister = true
} else if len(account.KeyType) == 0 {
// Set the KeyType if not already defined in the account
account.KeyType = acmeprovider.GetKeyType(a.KeyType)
}
a.client, err = a.buildACMEClient(account)