From dad2f9f2e67d21f65094db24d86f853d1cc6e18c Mon Sep 17 00:00:00 2001 From: Michail Resvanis Date: Tue, 25 Feb 2025 13:46:38 +0100 Subject: [PATCH 1/2] Print cert locations when re-signing fails Signed-off-by: Michail Resvanis --- src/cluster_crypto/cert_key_pair.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster_crypto/cert_key_pair.rs b/src/cluster_crypto/cert_key_pair.rs index 59362cff..8cfddd38 100644 --- a/src/cluster_crypto/cert_key_pair.rs +++ b/src/cluster_crypto/cert_key_pair.rs @@ -135,7 +135,7 @@ impl CertKeyPair { /// # Errors /// /// This function will return an error if . - #[context["re-signing cert with subject {}", self.distributed_cert.borrow().certificate.subject]] + #[context["re-signing cert {} with subject {}", self.distributed_cert.borrow().locations ,self.distributed_cert.borrow().certificate.subject]] pub(crate) fn re_sign_cert( &mut self, sign_with: Option<&SigningKey>, From ef69518a7f43b6d58e292ee602cf0c83e0e65116 Mon Sep 17 00:00:00 2001 From: Michail Resvanis Date: Tue, 25 Feb 2025 13:57:21 +0100 Subject: [PATCH 2/2] fixup! Print cert locations when re-signing fails --- src/cluster_crypto/cert_key_pair.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cluster_crypto/cert_key_pair.rs b/src/cluster_crypto/cert_key_pair.rs index 8cfddd38..bb1335b1 100644 --- a/src/cluster_crypto/cert_key_pair.rs +++ b/src/cluster_crypto/cert_key_pair.rs @@ -135,7 +135,7 @@ impl CertKeyPair { /// # Errors /// /// This function will return an error if . - #[context["re-signing cert {} with subject {}", self.distributed_cert.borrow().locations ,self.distributed_cert.borrow().certificate.subject]] + #[context["re-signing cert at locations {} with subject {}", self.distributed_cert.borrow().locations, self.distributed_cert.borrow().certificate.subject]] pub(crate) fn re_sign_cert( &mut self, sign_with: Option<&SigningKey>,