Make it compatible with the keys I can export from my Java signing keys
This commit is contained in:
@ -290,12 +290,12 @@ func (pc *PluginConfig) LoadPrivateKey(path string) (*rsa.PrivateKey, error) {
|
||||
}
|
||||
|
||||
privDer, _ := pem.Decode(privPem)
|
||||
privKey, err := x509.ParsePKCS1PrivateKey(privDer.Bytes)
|
||||
privKey, err := x509.ParsePKCS8PrivateKey(privDer.Bytes)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return privKey, nil
|
||||
return privKey.(*rsa.PrivateKey), nil
|
||||
}
|
||||
|
||||
func (pc *PluginConfig) keysPath(path string) (string, error) {
|
||||
|
Reference in New Issue
Block a user