Skip to content

Commit 77dccf2

Browse files
committed
add logging
1 parent d9c8486 commit 77dccf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/actions/csr/csr.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ func (c *Certificate) validateCSR(csr *x509.CertificateRequest) error {
404404
if u != fmt.Sprintf("%v", certv1.UsageServerAuth) &&
405405
u != fmt.Sprintf("%v", certv1.UsageDigitalSignature) &&
406406
u != fmt.Sprintf("%v", certv1.UsageKeyEncipherment) {
407-
return fmt.Errorf("%w: CSR usages", errInvalidCSR)
407+
return fmt.Errorf("%v: CSR usages %w", c.Usages, errInvalidCSR)
408408
}
409409
}
410410
// TODO add validation of IP and DNS

0 commit comments

Comments
 (0)