From d01c3f84cc1a69b993cf5eaae6cf8a8e101ead84 Mon Sep 17 00:00:00 2001 From: Adrian Heine Date: Tue, 2 Sep 2025 11:55:58 +0200 Subject: [PATCH] Adapt to trixie openssl --- src/symbols/acme/cert.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/symbols/acme/cert.rs b/src/symbols/acme/cert.rs index 955606b..6330c40 100644 --- a/src/symbols/acme/cert.rs +++ b/src/symbols/acme/cert.rs @@ -66,12 +66,18 @@ impl<_C: CommandRunner, C: Borrow<_C>, D: AsRef, P: AsRef> Symbol for ) .await?; if output.status.success() - && output.stdout + && (output.stdout == format!( "subject=CN = {}\nCertificate will not expire\n", self.domain.as_ref() ) .as_bytes() + || output.stdout + == format!( + "subject=CN={}\nCertificate will not expire\n", + self.domain.as_ref() + ) + .as_bytes()) { Ok( self @@ -94,12 +100,18 @@ impl<_C: CommandRunner, C: Borrow<_C>, D: AsRef, P: AsRef> Symbol for .is_ok(), ) } else if output.status.code() == Some(1) - && output.stdout + && (output.stdout == format!( "subject=CN = {}\nCertificate will expire\n", self.domain.as_ref() ) .as_bytes() + || output.stdout + == format!( + "subject=CN={}\nCertificate will expire\n", + self.domain.as_ref() + ) + .as_bytes()) { Ok(false) } else {