Set a keyType to ACME if the account is stored with no KeyType
This commit is contained in:
parent
2d449f63e0
commit
d04b4fa2cc
3 changed files with 89 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue