Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is Bouncy Castle still using CRL to validate certificate validity?#1863

Unanswered
onepeople158 asked this question inQ&A
Discussion options

Hello developer, while researching the Bouncy Castle API, I found that the class X509CRLObject has been enabled, and I saw the message "Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory." After further investigation, I did not find org.bouncycastle.cert (bcpkix). Does Bouncy Castle still have an API for CRL validation?

You must be logged in to vote

Replies: 1 comment 5 replies

Comment options

Yes, see Java's CertPath API. The support classes (as in the public ones) are in java.security.cert.

You must be logged in to vote
5 replies
@onepeople158
Comment options

Hello Developer,

I have used the isRevoked method in the Java library to perform a CRL (Certificate Revocation List) check, but I found that it does not return the expected result as specified by RFC 5280. Could you please let me know if Bouncy Castle or the Java library provides an API that implements the CRL validation algorithm as described in Chapter 6 of RFC 5280?

Thank you.

@dghgit
Comment options

As far as I'm aware both APIs are compliant with RFC 5280. When you say, "does not return the expected result" can you provide some details? If there's an issue with the BC API we'd certainly like to fix it, but it's impossible to tell what's going on from the current data available.

@onepeople158
Comment options

Hello, developer. The command line shows the result of my verification using OpenSSL, which displays a different range. In PyCharm, I am using the is_certificate_revoked method from the Java standard library for verification, and it does not check the CRL range according to RFC5280.
屏幕截图 2024-11-27 084324
屏幕截图 2024-11-27 084908
屏幕截图 2024-11-27 084856

@dghgit
Comment options

I really need the certificate chain and the CRL to work out what is going on here.

@onepeople158
Comment options

Hello developer, since the is_revoked function can run without the certificate chain, I'm not sure how to add the certificate chain into the validation process.
屏幕截图 2024-11-27 145653
屏幕截图 2024-11-27 144926

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@onepeople158@dghgit

[8]ページ先頭

©2009-2025 Movatter.jp