forked from TrueCloudLab/lego
Fix missing return in loadPrivateKey
This commit is contained in:
parent
1f777a0d77
commit
d46b0db199
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue