mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-24 21:48:23 +02:00
switch to error
This commit is contained in:
parent
868db2a0af
commit
4b38af47a3
1 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ func getClientCertificateInfo(
|
|||
|
||||
chain, err := url.QueryUnescape(escapedChain)
|
||||
if err != nil {
|
||||
log.Info(ctx).Str("chain", escapedChain).Err(err).
|
||||
log.Error(ctx).Str("chain", escapedChain).Err(err).
|
||||
Msg(`received unexpected client certificate "chain" value`)
|
||||
return c
|
||||
}
|
||||
|
@ -202,7 +202,7 @@ func getClientCertificateInfo(
|
|||
// Split the chain into the leaf and any intermediate certificates.
|
||||
p, rest := pem.Decode([]byte(chain))
|
||||
if p == nil {
|
||||
log.Info(ctx).Str("chain", escapedChain).
|
||||
log.Error(ctx).Str("chain", escapedChain).
|
||||
Msg(`received unexpected client certificate "chain" value (no PEM block found)`)
|
||||
return c
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue