diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2b7dbd2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,11 @@ +# Changelog + +## 0.0.2 + +### Features + +- Add support for local files and stdin. + +### Fixes + +- Print serial number correctly. diff --git a/Cargo.lock b/Cargo.lock index 75b560d..c865768 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -278,7 +278,7 @@ dependencies = [ [[package]] name = "inspect-cert-chain" -version = "0.0.1" +version = "0.0.2" dependencies = [ "byteorder", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 2bf94dc..dbc9fa9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "inspect-cert-chain" -version = "0.0.1" +version = "0.0.2" edition = "2021" [dependencies] diff --git a/README.md b/README.md index 572d6dc..87f41a4 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,22 @@ # Usage +From remote host: + +```console +inspect-cert-chain --host +``` + +From chain file: + +```console +inspect-cert-chain --file +``` + +From stdin: + ```console -cargo run -- +cat | inspect-cert-chain --file - ``` # Roadmap @@ -13,5 +27,5 @@ cargo run -- - [x] OpenSSL-like text info - [x] fetch certificate from URL - [x] interpret more standard X.509 extensions -- [ ] option to read local chain files +- [x] option to read local chain files - [ ] determine chain validity