[pki] Tests: chains, expiry, wrong issuer, agent certificates, the root signer (red: the code follows)

This commit is contained in:
2026-11-17 11:15:54 +01:00
parent b37c30b413
commit ae6d2edcbb
6 changed files with 744 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
[package]
name = "domi-pki"
version = "1.0.0"
description = "The Domi CA: root certificate through a signer, intermediates, server, device and agent certificates, chain checks. Pure: no I/O."
edition = "2024"
rust-version = "1.89"
license = "MPL-2.0"
repository = "https://gitea.marek-novak.cz/mnovak/domi-pki"
publish = false
[dependencies]
rcgen = { version = "0.14.5", default-features = false, features = ["ring", "pem", "crypto", "x509-parser"] }
x509-parser = { version = "0.18", features = ["verify"] }
webpki = { package = "rustls-webpki", version = "0.103", default-features = false, features = ["ring", "alloc"] }
rustls-pki-types = "1.12"
ring = "0.17.14"
base64 = "0.22.1"
thiserror = "2.0.17"
time = { version = "0.3", default-features = false }
[lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
[lints.clippy]
# Hostile input never meets unwrap(): non-test code must handle every Result.
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"