We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 407ce64 commit 4ac38ebCopy full SHA for 4ac38eb
cmd/dkim-milter/main.go
@@ -345,6 +345,12 @@ func loadPrivateKey(path string) (crypto.Signer, error) {
345
}
346
347
switch strings.ToUpper(block.Type) {
348
+ case "PRIVATE KEY":
349
+ k, err := x509.ParsePKCS8PrivateKey(block.Bytes)
350
+ if err != nil {
351
+ return nil, err
352
+ }
353
+ return k.(crypto.Signer), nil
354
case "RSA PRIVATE KEY":
355
return x509.ParsePKCS1PrivateKey(block.Bytes)
356
case "EDDSA PRIVATE KEY":
0 commit comments