From 10b51ea2f3f75ce3cbcaf19f0b7f2ecb01ab0bb5 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 19 Oct 2022 19:53:43 -0700 Subject: feat: get information about a given certificate Read the domain name from the CLI, and get and print information about the certificate to STDOUT. The output looks like this: ``` > ./target/debug/x509-info badssl.com Subject: CN=*.badssl.com O= L= Issuer: CN=R3 O=Let's Encrypt L= DNS Names: *.badssl.com, badssl.com Validity Period Not before: 2022-08-12T07:57:46-07:00 Not After: 2022-11-10T06:57:45-08:00 ``` --- src/x509-info/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/x509-info/README.md (limited to 'src/x509-info/README.md') diff --git a/src/x509-info/README.md b/src/x509-info/README.md new file mode 100644 index 0000000..c8a1090 --- /dev/null +++ b/src/x509-info/README.md @@ -0,0 +1,15 @@ +# x509-info + +At this point it's pretty clear that I'll never remember the syntax for `openssl` to show various information about a certificate. At last I will not have to google for that syntax ever again. + +``` shell +$ x509-info github.com + Subject: CN=github.com O=GitHub, Inc. L=San Francisco + Issuer: CN=DigiCert TLS Hybrid ECC SHA384 2020 CA1 O=DigiCert Inc L= + DNS Names: github.com, www.github.com + Validity Period + Not before: 2022-03-14T17:00:00-07:00 + Not After: 2023-03-15T16:59:59-07:00 +``` + +Could the same be achieved with a wrapper around `openssl` ? yes. -- cgit v1.2.3