Adapt to trixie openssl
This commit is contained in:
parent
136c348f01
commit
97057db8d2
2 changed files with 13 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::command_runner::CommandRunner;
|
||||
use crate::command_runner::{get_stderr_or_stdout, CommandRunner};
|
||||
use crate::symbols::Symbol;
|
||||
use async_trait::async_trait;
|
||||
use std::borrow::Borrow;
|
||||
|
|
@ -32,13 +32,14 @@ impl<C: CommandRunner, D: Borrow<str>, K: AsRef<Path>, P: AsRef<Path>> Symbol fo
|
|||
return Ok(false);
|
||||
}
|
||||
|
||||
let output = self
|
||||
let result = self
|
||||
.command_runner
|
||||
.get_stderr(
|
||||
.run_with_args(
|
||||
"openssl",
|
||||
args!["req", "-in", self.csr_path.as_ref(), "-noout", "-verify",],
|
||||
)
|
||||
.await?;
|
||||
let output = get_stderr_or_stdout(result)?;
|
||||
Ok(output == b"verify OK\n" || output == b"Certificate request self-signature verify OK\n")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue