aboutsummaryrefslogtreecommitdiff
path: root/src/x509-info/.github
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-10-19 19:53:43 -0700
committerFranck Cuny <franck.cuny@gmail.com>2022-10-21 17:50:23 -0700
commit10b51ea2f3f75ce3cbcaf19f0b7f2ecb01ab0bb5 (patch)
treeddb3a514002573fe98b579bb627a048c5d21fcc9 /src/x509-info/.github
parentbuild: fix the name of the workflow (diff)
downloadx-10b51ea2f3f75ce3cbcaf19f0b7f2ecb01ab0bb5.tar.gz
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 ```
Diffstat (limited to 'src/x509-info/.github')
-rw-r--r--src/x509-info/.github/workflows/build.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/x509-info/.github/workflows/build.yml b/src/x509-info/.github/workflows/build.yml
index 649d03c..ef02e63 100644
--- a/src/x509-info/.github/workflows/build.yml
+++ b/src/x509-info/.github/workflows/build.yml
@@ -71,3 +71,18 @@ jobs:
with:
command: clippy
args: -- -D warnings
+
+ run:
+ name: Run
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: stable
+ override: true
+ - uses: actions-rs/cargo@v1
+ with:
+ command: run
+ args: -- fcuny.net