mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
Support legacy "RSA" value
This commit is contained in:
parent
2aac265ed4
commit
a1add992ee
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user