Skip to content

Conversation

@RufusJWB
Copy link

As discussed in crtsh/certwatch_db#79 it would be admirable to have a more verbose error logging while doing OCSP checks

Copy link
Member

@robstradling robstradling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've committed an alternative fix: 2db360b

der_cert, err := base64.StdEncoding.DecodeString(b64_cert)
if err != nil {
return fmt.Sprintf("%v", err)
return fmt.Sprintf("Error while base64 decoding EE cert|%v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function (Ocsp_check) isn't only used to perform OCSP checks for EE certs.

der_issuer, err := base64.StdEncoding.DecodeString(b64_issuer)
if err != nil {
return fmt.Sprintf("%v", err)
return fmt.Sprintf("Error while base64 decoding ICA cert|%v", err)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The issue cert isn't necessarily an intermediate. It might be a root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants