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