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

Bad decrypt. #35

Closed
harsh-98 opened this issue Aug 10, 2019 · 2 comments
Closed

Bad decrypt. #35

harsh-98 opened this issue Aug 10, 2019 · 2 comments

Comments

@harsh-98
Copy link

harsh-98 commented Aug 10, 2019

I am using OCSP server with key and cert of CA.
And trying to get response from it using ocsp.cache with webserver keypair. But the OCSP server is crashing with error.

  var ret = this._handle.sign(key, passphrase, rsaPadding, pssSaltLength);
                         ^
Error: error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt

The error is occuring at: https://github.com/indutny/ocsp/blob/master/lib/ocsp/server.js#L141

I know main problem here is the crypto material, wrong material must have resulted in this behaviour. Let me know if certificates and keys are required.

@harsh-98
Copy link
Author

Can add a demo of how to use this end-to-end? that will be really helpful.

@harsh-98
Copy link
Author

Closing the issue as private key passphrase was not provided which resulted in this error.

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