Support legacy "RSA" value

This commit is contained in:
Yang Luo 2024-03-10 19:23:54 +08:00
parent 2aac265ed4
commit a1add992ee

View File

@ -214,6 +214,10 @@ func (p *Cert) populateContent() error {
return err return err
} }
if p.CryptoAlgorithm == "RSA" {
p.CryptoAlgorithm = "RS256"
}
sigAlgorithm := p.CryptoAlgorithm[:2] sigAlgorithm := p.CryptoAlgorithm[:2]
shaSize, err := util.ParseIntWithError(p.CryptoAlgorithm[2:]) shaSize, err := util.ParseIntWithError(p.CryptoAlgorithm[2:])
if err != nil { if err != nil {