Adapt TLSKey to Debian 10
This commit is contained in:
parent
bc74acc4ab
commit
afa5791d07
1 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ impl<C: CommandRunner> Symbol for TlsKey<'_, C> {
|
|||
return Ok(false);
|
||||
}
|
||||
|
||||
let output = self.command_runner.get_output(
|
||||
let stdout = self.command_runner.get_output(
|
||||
"openssl",
|
||||
&[
|
||||
OsStr::new("rsa"),
|
||||
|
|
@ -54,7 +54,7 @@ impl<C: CommandRunner> Symbol for TlsKey<'_, C> {
|
|||
"-text".as_ref(),
|
||||
],
|
||||
)?;
|
||||
Ok(output.starts_with(format!("Private-Key: ({} bit)\n", self.get_bytes()).as_bytes()))
|
||||
Ok(stdout.ends_with("RSA key ok\n".as_bytes()))
|
||||
}
|
||||
|
||||
fn execute(&self) -> Result<(), Box<dyn Error>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue