Adapt to trixie openssl
This commit is contained in:
parent
0a6b6efd7a
commit
d01c3f84cc
1 changed files with 14 additions and 2 deletions
|
|
@ -66,12 +66,18 @@ impl<_C: CommandRunner, C: Borrow<_C>, D: AsRef<str>, P: AsRef<Path>> Symbol for
|
||||||
)
|
)
|
||||||
.await?;
|
.await?;
|
||||||
if output.status.success()
|
if output.status.success()
|
||||||
&& output.stdout
|
&& (output.stdout
|
||||||
== format!(
|
== format!(
|
||||||
"subject=CN = {}\nCertificate will not expire\n",
|
"subject=CN = {}\nCertificate will not expire\n",
|
||||||
self.domain.as_ref()
|
self.domain.as_ref()
|
||||||
)
|
)
|
||||||
.as_bytes()
|
.as_bytes()
|
||||||
|
|| output.stdout
|
||||||
|
== format!(
|
||||||
|
"subject=CN={}\nCertificate will not expire\n",
|
||||||
|
self.domain.as_ref()
|
||||||
|
)
|
||||||
|
.as_bytes())
|
||||||
{
|
{
|
||||||
Ok(
|
Ok(
|
||||||
self
|
self
|
||||||
|
|
@ -94,12 +100,18 @@ impl<_C: CommandRunner, C: Borrow<_C>, D: AsRef<str>, P: AsRef<Path>> Symbol for
|
||||||
.is_ok(),
|
.is_ok(),
|
||||||
)
|
)
|
||||||
} else if output.status.code() == Some(1)
|
} else if output.status.code() == Some(1)
|
||||||
&& output.stdout
|
&& (output.stdout
|
||||||
== format!(
|
== format!(
|
||||||
"subject=CN = {}\nCertificate will expire\n",
|
"subject=CN = {}\nCertificate will expire\n",
|
||||||
self.domain.as_ref()
|
self.domain.as_ref()
|
||||||
)
|
)
|
||||||
.as_bytes()
|
.as_bytes()
|
||||||
|
|| output.stdout
|
||||||
|
== format!(
|
||||||
|
"subject=CN={}\nCertificate will expire\n",
|
||||||
|
self.domain.as_ref()
|
||||||
|
)
|
||||||
|
.as_bytes())
|
||||||
{
|
{
|
||||||
Ok(false)
|
Ok(false)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue