The current code, under examples/print_cert.rs, checks whether the subject and issuer are the same with
|
if x509.subject() == x509.issuer() { |
At least, with the self-signed certificates I am trying the example against, the condition check returns false even though the subject and issuer are the same. Using something like
if x509.subject().to_string() == x509.issuer().to_string() {
fixes the issue.
More broadly this seems to be related to #20.
The current code, under
examples/print_cert.rs, checks whether the subject and issuer are the same withx509-parser/examples/print-cert.rs
Line 221 in b7dcc93
At least, with the self-signed certificates I am trying the example against, the condition check returns false even though the subject and issuer are the same. Using something like
fixes the issue.
More broadly this seems to be related to #20.