less useless errormessages.
Dieser Commit ist enthalten in:
Ursprung
3810b30d5d
Commit
f2de0903cd
|
@ -27,10 +27,9 @@ func initcert(file string, verify func(interface{}) bool) (key interface{}, err
|
|||
var key interface{}
|
||||
key, err = x509.ParsePKCS8PrivateKey(b.Bytes)
|
||||
if err != nil {
|
||||
log.Warn().AnErr("parsingerror", err).Msgf("could not parse file %s as privatkey", file)
|
||||
key, err = x509.ParseCertificate(b.Bytes)
|
||||
if err != nil {
|
||||
log.Warn().AnErr("parsingerror", err).Msgf("could not parse file %s as publickey", file)
|
||||
log.Warn().AnErr("parsingerror", err).Msgf("could not parse file %s as publickey or as an privatekey", file)
|
||||
continue
|
||||
}
|
||||
}
|
||||
|
|
Laden…
In neuem Issue referenzieren