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

ValueError: error parsing asn1 value: ParseError { kind: ShortData } inside load_ocsp_response() #581

Open
tykling opened this issue Oct 23, 2023 · 1 comment

Comments

@tykling
Copy link
Owner

tykling commented Oct 23, 2023

Traceback (most recent call last):
  File "/opt/certgrinder/virtualenv/bin/certgrinder", line 8, in <module>
    sys.exit(main())
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/certgrinder/certgrinder.py", line 2259, in main
    certgrinder.grind(args)
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/certgrinder/certgrinder.py", line 1835, in grind
    getattr(self, args.method)()
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/certgrinder/certgrinder.py", line 1641, in periodic
    if not self.check_ocsp():
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/certgrinder/certgrinder.py", line 1139, in check_ocsp
    ocsp_response = self.load_ocsp_response(self.ocsp_response_path)
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/certgrinder/certgrinder.py", line 1045, in load_ocsp_response
    return ocsp.load_der_ocsp_response(ocsp_response_data)
  File "/opt/certgrinder/virtualenv/lib/python3.10/site-packages/cryptography/x509/ocsp.py", line 622, in load_der_ocsp_response
    return ocsp.load_der_ocsp_response(data)
ValueError: error parsing asn1 value: ParseError { kind: ShortData }

@tykling
Copy link
Owner Author

tykling commented Oct 23, 2023

this happens when no ocsp response is found on disk

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

No branches or pull requests

1 participant