briansmith / webpki

WebPKI X.509 Certificate Validation in Rust
https://briansmith.org/rustdoc/webpki/
Other
459 stars 164 forks source link

Err(UnknownIssuer) occurred when verifying certificate chain #262

Closed YT-SUN97 closed 2 years ago

YT-SUN97 commented 2 years ago

Hi, I am a beginner and quite confused about this. I tried to verify a cert chain (2 certs, root ca cert signed end-entity cert). First, I cloned the repo, added my test case, and used the cargo test, The result was passed (ok). After that, I tried to call API(I wrote the same code, referred to this fn in this repo). But it failed with Err(UnknownIssuer). Can someone give me some advice? I really appreciate any help you can provide.

image image
YT-SUN97 commented 2 years ago

Finally, I solved it. Let's close the issue.

bojankaios commented 1 month ago

How to solve it? Thanks