Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't check OCSP if there are no OCSP servers in the chain #255

Merged
merged 1 commit into from
Feb 9, 2022

Conversation

jdtw
Copy link
Contributor

@jdtw jdtw commented Jan 21, 2022

certigo displays the following misleading error when there are no OCSP servers in a chain:

 Certificate has OCSP extension, but was unable to check status:
        asn1: syntax error: sequence truncated

It tries to parse a zero-length OCSP response. This PR adds an upfront check to bypass OCSP if there aren't any servers in the chain.

@jdtw jdtw merged commit 8f0d49f into master Feb 9, 2022
@jdtw jdtw deleted the jdtw/skip-ocsp branch February 9, 2022 18:07
@jdtw jdtw linked an issue Feb 22, 2022 that may be closed by this pull request
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.

asn1: syntax error: sequence truncated
2 participants