aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* chore: update flakegithub-actions[bot]2024-05-121-9/+9
| | | | | | | | | | | | | | Flake lock file updates: • Updated input 'fenix': 'github:nix-community/fenix/94be183087845937b0fd77281c37d0796572b899' (2024-04-28) → 'github:nix-community/fenix/297c756ba6249d483c1dafe42378560458842173' (2024-05-10) • Updated input 'fenix/rust-analyzer-src': 'github:rust-lang/rust-analyzer/f216be4a0746142c5f30835b254871256a7637b8' (2024-04-27) → 'github:rust-lang/rust-analyzer/5bf2f85c8054d80424899fa581db1b192230efb5' (2024-05-09) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/2b1f64b358f2cab62617f26b3870fd0ee375d848' (2024-04-27) → 'github:nixos/nixpkgs/af8b9db5c00f1a8e4b83578acc578ff7d823b786' (2024-05-12)
* fix URL to the repositoryFranck Cuny2024-04-282-3/+1
|
* Merge pull request #9 from fcuny/fcuny/bump-depsFranck Cuny2024-04-285-365/+486
|\ | | | | bump a number of dependencies to their latest versions
| * bump a number of dependencies to their latest versionsdependabot[bot]2024-04-285-365/+486
|/ | | | Updating all these dependencies required some significant code change.
* Merge pull request #8 from fcuny/dependabot/cargo/clap-4.5.4Franck Cuny2024-04-222-73/+80
|\ | | | | build(deps): bump clap from 4.0.18 to 4.5.4
| * build(deps): bump clap from 4.0.18 to 4.5.4dependabot[bot]2024-04-222-73/+80
|/ | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.0.18 to 4.5.4. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.18...v4.5.4) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* use `add_trust_anchors`Franck Cuny2024-04-161-1/+1
| | | | | | ``` error: use of deprecated method `rustls::RootCertStore::add_server_trust_anchors`: Please use `add_trust_anchors` instead ```
* clippy should fail on warningsFranck Cuny2024-04-161-1/+1
|
* Merge pull request #2 from fcuny/dependabot/cargo/rustls-0.21.10Franck Cuny2024-04-152-21/+148
|\ | | | | build(deps): bump rustls from 0.20.7 to 0.21.10
| * build(deps): bump rustls from 0.20.7 to 0.21.10dependabot[bot]2024-04-162-21/+148
|/ | | | | | | | | | | | | | | Bumps [rustls](https://github.com/rustls/rustls) from 0.20.7 to 0.21.10. - [Release notes](https://github.com/rustls/rustls/releases) - [Changelog](https://github.com/rustls/rustls/blob/main/CHANGELOG.md) - [Commits](https://github.com/rustls/rustls/compare/v/0.20.7...v/0.21.10) --- updated-dependencies: - dependency-name: rustls dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #4 from fcuny/dependabot/cargo/anyhow-1.0.82Franck Cuny2024-04-152-3/+3
|\ | | | | build(deps): bump anyhow from 1.0.70 to 1.0.82
| * build(deps): bump anyhow from 1.0.70 to 1.0.82dependabot[bot]2024-04-162-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.70 to 1.0.82. - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.82) --- updated-dependencies: - dependency-name: anyhow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* | Merge pull request #1 from fcuny/dependabot/cargo/x509-parser-0.16.0Franck Cuny2024-04-152-57/+88
|\ \ | |/ |/| build(deps): bump x509-parser from 0.14.0 to 0.16.0
| * build(deps): bump x509-parser from 0.14.0 to 0.16.0dependabot[bot]2024-04-162-57/+88
|/ | | | | | | | | | | | | | | Bumps [x509-parser](https://github.com/rusticata/x509-parser) from 0.14.0 to 0.16.0. - [Release notes](https://github.com/rusticata/x509-parser/releases) - [Changelog](https://github.com/rusticata/x509-parser/blob/master/CHANGELOG.md) - [Commits](https://github.com/rusticata/x509-parser/compare/x509-parser-0.14.0...x509-parser-0.16.0) --- updated-dependencies: - dependency-name: x509-parser dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* add some workflows for CI and dependabot configFranck Cuny2024-04-153-0/+86
|
* replace rust-overlay with naerskFranck Cuny2023-07-054-171/+282
| | | | | This is mostly coming from https://github.com/DeterminateSystems/nix-installer/blob/main/flake.nix
* remove configuration for droneFranck Cuny2023-03-301-50/+0
|
* update metadata in Cargo.tomlFranck Cuny2023-03-301-2/+4
|
* simplify the main functionFranck Cuny2023-03-301-5/+1
|
* use anyhow for error handlingFranck Cuny2023-03-303-3/+11
|
* add a flag to check expired certificateFranck Cuny2023-03-285-36/+94
| | | | | | | | | Add the `--insecure` flag so we can check certificates that are expired. When using the short format for the output (the default), if the certificate has expired, it will report how many days ago. For certificates that have not expired, the remaining number of days will be printed.
* doc: update READMEFranck Cuny2022-11-131-7/+55
|
* Merge pull request 'ref: print succinct or detailed information about a ↵Franck2022-11-133-71/+106
|\ | | | | | | | | | | cert' (#3) from fcuny/rendering into main Reviewed-on: https://git.fcuny.net/fcuny/x509-info/pulls/3
| * ref: print succinct or detailed information about a certFranck Cuny2022-11-133-71/+106
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Most of the time, all I want is to know when the certificate is going to expire. In some cases, I might want to see more details. This change introduce a new argument to the CLI to select what level of information to print. The new option (`--format`) will by default print the short summary, like this: ``` > ./target/debug/x509-info twitter.com twitter.com is valid until Mon, 12 Dec 2022 15:59:59 -0800 (29 days left) ``` While with `--format long` we get the following: ``` > ./target/debug/x509-info --format long twitter.com certificate version: V3 serial: 0d:e1:52:69:6b:2f:96:70:d6:c7:db:18:ce:1c:71:a0 subject: C=US, ST=California, L=San Francisco, O=Twitter, Inc., CN=twitter.com issuer: C=US, O=DigiCert Inc, CN=DigiCert TLS RSA SHA256 2020 CA1 validity not before : Sun, 12 Dec 2021 16:00:00 -0800 not after : Mon, 12 Dec 2022 15:59:59 -0800 validity days : 364 remaining days: 29 SANs: DNS:twitter.com DNS:www.twitter.com ```
* Merge pull request 'fcuny/minor-changes' (#2) from fcuny/reduce-build-time ↵Franck2022-11-092-2/+4
|\ | | | | | | | | | | into main Reviewed-on: https://git.fcuny.net/fcuny/x509-info/pulls/2
| * fix: small nitFranck Cuny2022-11-091-1/+1
| |
| * fix: ensure rust-src is installedFranck Cuny2022-11-091-1/+3
|/
* fix: configure properly the overlayFranck Cuny2022-11-081-1/+1
|
* flake.lock: UpdateFranck2022-11-081-12/+12
| | | | | | | | | | | | | | | | | Flake lock file updates: • Updated input 'flake-utils': 'github:numtide/flake-utils/c0e246b9b83f637f4681389ecabcb2681b4f3af0' (2022-08-07) → 'github:numtide/flake-utils/5aed5285a952e0b949eb3ba02c12fa4fcfef535f' (2022-11-02) • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/d3c2379d149073e53eb5580deafad475c1cabe28' (2022-10-20) → 'github:NixOS/nixpkgs/1d29ae3a66395506fd85655a8d74279ad4f9098f' (2022-11-08) • Updated input 'pre-commit-hooks': 'github:cachix/pre-commit-hooks.nix/1b436f36e2812c589e6d830e3223059ea9661100' (2022-10-24) → 'github:cachix/pre-commit-hooks.nix/06f48d63d473516ce5b8abe70d15be96a0147fcd' (2022-11-06) • Updated input 'rust-overlay': 'github:oxalica/rust-overlay/dd334e95eb46e79e52a75c80ef9ba73c3d867840' (2022-10-20) → 'github:oxalica/rust-overlay/9235990723630e1a55e1ed6bca5954e4e31cfbd7' (2022-11-08)
* ci: add pipeline to update flacksFranck Cuny2022-11-071-0/+14
|
* Merge pull request 'ci: switch from GitHub action to drone' (#1) from ↵fcuny2022-11-064-60/+37
|\ | | | | | | | | | | fcuny/drone-ci into main Reviewed-on: https://git.fcuny.net/fcuny/x509-info/pulls/1
| * ci: switch from GitHub action to droneFranck Cuny2022-11-064-60/+37
|/ | | | | | | | | | | I'm running my own CI at ci.fcuny.net using drone for now. I've spare compute capacity at home, and it's way faster than the GHA runners. For now I'm losing the following: - dependabot: that's a GitHub only function, I'll need to figure out something - nix flake update: I'll need to figure out a way to update flakes on a regular basis, probably a custom script to take care of that
* Merge pull request #5 from fcuny/fcuny/craneFranck Cuny2022-11-042-30/+114
|\
| * buid: use crane to build the binaryFranck Cuny2022-11-042-30/+114
|/ | | | | | | crane is a nix library to build cargo projects, similar to naersk. The main advantage over naersk is the composability. I'll give it a try and see if it's faster for local development.
* Merge pull request #4 from fcuny/fcuny/rewrite-actionsFranck Cuny2022-11-017-208/+215
|\
| * build: follow flake-inputs for rust overlayFranck Cuny2022-11-012-16/+4
| |
| * build: add pre-commit checksFranck Cuny2022-11-013-4/+56
| |
| * ci: rewrite GitHub actions to use `nix develop|build`Franck Cuny2022-11-011-75/+36
| | | | | | | | | | | | | | Instead of relying on GitHub actions to check/test/build the code, I can rely entirely on nix to do these steps. This has the added benefit that the workflow will be similar to my local environment and make it easy to test the worfklow before running it on GitHub.
| * fix: disable default feature on `chrono` crateFranck Cuny2022-11-012-49/+46
| | | | | | | | See https://github.com/chronotope/chrono/issues/602 for more details.
| * build: get rid of naerskFranck Cuny2022-11-012-55/+28
| | | | | | | | | | | | | | | | We can build a rust binary without naesrk,with the help of `buildRustPackage`. Simplify a bit the overall build by consuming information from Cargo.toml and Cargo.lock.
| * build: configure rust overlay to follow nixpkgsFranck Cuny2022-11-012-18/+7
| |
| * meta: add a configuration to allow/deny dependenciesFranck Cuny2022-11-011-0/+46
| | | | | | | | | | | | cargo-deny is a plugin to lint a project's dependency graph. This allow me to set which licenses are allowed for the dependencies, and configure the security vulnerability database.
| * meta: ignore result directoryFranck Cuny2022-11-011-0/+1
|/
* Merge pull request #3 from fcuny/dependabot/cargo/clap-4.0.18Franck Cuny2022-10-242-5/+5
|\ | | | | build(deps): bump clap from 4.0.17 to 4.0.18
| * build(deps): bump clap from 4.0.17 to 4.0.18dependabot[bot]2022-10-242-5/+5
|/ | | | | | | | | | | | | | | Bumps [clap](https://github.com/clap-rs/clap) from 4.0.17 to 4.0.18. - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18) --- updated-dependencies: - dependency-name: clap dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
* build(deps): bump actions/checkout from 2 to 3dependabot[bot]2022-10-211-5/+5
| | | | | | | | | | | | | | | Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
* feat: get information about a given certificateFranck Cuny2022-10-217-1/+1197
| | | | | | | | | | | | | | | | 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 ```
* build: fix the name of the workflowFranck Cuny2022-10-191-1/+1
|
* meta: initial commitFranck Cuny2022-10-1910-0/+182
Create the initial scaffolding for a rust project, using `cargo` and a nix template.