Browse Source

Adapt TLSKey to Debian 10

master
Adrian Heine 5 years ago
parent
commit
afa5791d07
  1. 4
      src/symbols/tls/key.rs

4
src/symbols/tls/key.rs

@ -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…
Cancel
Save