mirror of
https://github.com/go-acme/lego.git
synced 2025-01-05 16:11:31 +02:00
Fix missing return in loadPrivateKey
This commit is contained in:
parent
1f777a0d77
commit
d46b0db199
@ -47,7 +47,7 @@ func loadPrivateKey(file string) (crypto.PrivateKey, error) {
|
||||
|
||||
switch keyBlock.Type {
|
||||
case "RSA PRIVATE KEY":
|
||||
x509.ParsePKCS1PrivateKey(keyBlock.Bytes)
|
||||
return x509.ParsePKCS1PrivateKey(keyBlock.Bytes)
|
||||
case "EC PRIVATE KEY":
|
||||
return x509.ParseECPrivateKey(keyBlock.Bytes)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user