|
|
@ -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")
|
|
|
|
}
|
|
|
|
|
|
|
|