mirror of
https://github.com/certimate-go/certimate.git
synced 2026-06-30 21:05:12 +08:00
fix: 腾讯云EdgeOne多证书模式无法更新证书
This commit is contained in:
parent
1fd0e50f43
commit
e31ed94922
@ -194,7 +194,11 @@ func (d *Deployer) Deploy(ctx context.Context, certPEM, privkeyPEM string) (*dep
|
||||
const algRSA = "RSA"
|
||||
const algECC = "ECC"
|
||||
|
||||
privkeyAlg, _, _ := xcryptokey.GetPrivateKeyAlgorithm(privkeyPEM)
|
||||
privkey, err := xcert.ParsePrivateKeyFromPEM(privkeyPEM)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("could not parse custom private key: %w", err)
|
||||
}
|
||||
privkeyAlg, _, _ := xcryptokey.GetPrivateKeyAlgorithm(privkey)
|
||||
privkeyAlgStr := ""
|
||||
switch privkeyAlg {
|
||||
case x509.RSA:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user