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
|
@ -309,6 +309,12 @@ func (p *Provider) initAccount() (*Account, error) {
|
|||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
// Set the KeyType if not already defined in the account
|
||||
if len(p.account.KeyType) == 0 {
|
||||
p.account.KeyType = GetKeyType(p.KeyType)
|
||||
}
|
||||
|
||||
return p.account, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue