From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id AC24F1FF13C for ; Thu, 25 Jun 2026 16:13:55 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0DDDC131C7; Thu, 25 Jun 2026 16:13:46 +0200 (CEST) From: Manuel Federanko To: pbs-devel@lists.proxmox.com, pdm-devel@lists.proxmox.com Subject: [PATCH proxmox-backup 5/7] acme: add ari_id to cert info. Date: Thu, 25 Jun 2026 16:13:35 +0200 Message-ID: <20260625141337.181684-6-m.federanko@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260625141337.181684-1-m.federanko@proxmox.com> References: <20260625141337.181684-1-m.federanko@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -1.774 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RCVD_IN_SBL_CSS 3.335 Received via a relay in Spamhaus SBL-CSS RDNS_NONE 0.793 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: NT4XJFCJXGMX6WUTWO2IQ52GLBIN5CJP X-Message-ID-Hash: NT4XJFCJXGMX6WUTWO2IQ52GLBIN5CJP X-MailFrom: mfederanko@dev.localdomain X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Manuel Federanko --- pbs-tools/Cargo.toml | 1 + pbs-tools/src/cert.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pbs-tools/Cargo.toml b/pbs-tools/Cargo.toml index 6b1d92fa6..e05dbac29 100644 --- a/pbs-tools/Cargo.toml +++ b/pbs-tools/Cargo.toml @@ -20,6 +20,7 @@ tokio = { workspace = true, features = [ "fs", "io-util", "rt", "rt-multi-thread tracing.workspace = true proxmox-async.workspace = true +proxmox-acme-api.workspace = true proxmox-io = { workspace = true, features = [ "tokio" ] } proxmox-human-byte.workspace = true proxmox-log.workspace = true diff --git a/pbs-tools/src/cert.rs b/pbs-tools/src/cert.rs index 61ccce952..d29587eaa 100644 --- a/pbs-tools/src/cert.rs +++ b/pbs-tools/src/cert.rs @@ -101,4 +101,8 @@ impl CertInfo { pub fn is_expired_after_epoch(&self, epoch: i64) -> Result { Ok(self.not_after_unix()? < epoch) } + + pub fn ari_id(&self) -> Option { + proxmox_acme_api::compute_ari_certificate_id(&self.x509) + } } -- 2.47.3