Skip to content

Fix for CRL verify when signed with EC key #276

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

Merged
merged 2 commits into from
May 3, 2023

Conversation

tsaarni
Copy link
Contributor

@tsaarni tsaarni commented May 2, 2023

This change adds support for verifying the signature CRL files that are signed using EC private key.

It allows using CRL files that are issued by CA that uses EC key pair. Previously the CRL check failed, and peer certificate was always rejected as invalid even if it was valid, since the validation of CRL file itself failed.

Fixes #275

tsaarni added 2 commits May 2, 2023 16:25
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
Signed-off-by: Tero Saarni <tero.saarni@est.tech>
@tsaarni
Copy link
Contributor Author

tsaarni commented May 2, 2023

I've added a test case, but it depends on some hardcoded test data. I did not see a script that I could adjust, so it is manually generated. I set expiration for 50 years, so that expiration of test data should not become a failure reason for this test.

@kares kares merged commit 2584c40 into jruby:master May 3, 2023
@kares
Copy link
Member

kares commented May 3, 2023

Great work, Thanks Tero

tsaarni added a commit to Nordix/jruby-openssl that referenced this pull request May 23, 2023
* Fix for CRL verify when signed with EC key

Signed-off-by: Tero Saarni <tero.saarni@est.tech>

* Added test case for CRL validation

Signed-off-by: Tero Saarni <tero.saarni@est.tech>
@tsaarni
Copy link
Contributor Author

tsaarni commented Jun 2, 2023

Hi @kares,
I know that after last release there has not been that many changes yet, but since side-loading gems and versioning forks can get bit tricky, I thought I'd ask if you happen to have any plans for the next release (including this PR)? 🙏

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.

CRL check fails if the issuing CA uses EC key pair
2 participants