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.