Make it compatible with the keys I can export from my Java signing keys

This commit is contained in:
eyedeekay
2024-10-02 22:33:50 -04:00
parent 42abbe021b
commit 22d2d54fbd

View File

@ -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) {