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

@ -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
}