diff options
author | lloyd <[email protected]> | 2007-10-20 15:49:13 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-10-20 15:49:13 +0000 |
commit | b875264c35edf6c5ff923e39db86b48d0d0b13fc (patch) | |
tree | f5e4f8fb6d61b22c53f9823dfe03c1bf37f5d74d /doc/examples/x509info.cpp | |
parent | 0776dc9e4fd7a7840291657e831a9d7d1b774b39 (diff) |
Print the IPv4 address, DNS name, or URL included in the subject or
issuer alternative names.
Diffstat (limited to 'doc/examples/x509info.cpp')
-rw-r--r-- | doc/examples/x509info.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/examples/x509info.cpp b/doc/examples/x509info.cpp index 6694ab5e1..4bcf17a20 100644 --- a/doc/examples/x509info.cpp +++ b/doc/examples/x509info.cpp @@ -69,6 +69,9 @@ int main(int argc, char* argv[]) do_subject(cert, "Locality"); do_subject(cert, "State"); do_subject(cert, "Country"); + do_subject(cert, "IP"); + do_subject(cert, "DNS"); + do_subject(cert, "URI"); do_subject(cert, "PKIX.XMPPAddr"); std::cout << "Issuer" << std::endl; @@ -79,6 +82,9 @@ int main(int argc, char* argv[]) do_issuer(cert, "Locality"); do_issuer(cert, "State"); do_issuer(cert, "Country"); + do_issuer(cert, "IP"); + do_issuer(cert, "DNS"); + do_issuer(cert, "URI"); std::cout << "Validity" << std::endl; |