This commit is contained in:
nora 2024-08-25 15:13:46 +02:00
parent b6d0675976
commit b0acf03502
22 changed files with 84 additions and 26 deletions

View file

@ -5,10 +5,13 @@ edition = "2021"
[dependencies]
clap = { version = "4.5.16", features = ["derive"] }
eyre = "0.6.12"
eyre.workspace = true
tracing.workspace = true
cluelessh-keys = { path = "../../lib/cluelessh-keys" }
base64 = "0.22.1"
rpassword = "7.3.1"
pem = "3.0.4"
[lints]
workspace = true

View file

@ -113,7 +113,7 @@ fn info(id_file: &Path, decrypt: bool, show_private: bool) -> eyre::Result<()> {
}
let file =
std::fs::read(&id_file).wrap_err_with(|| format!("reading file {}", id_file.display()))?;
std::fs::read(id_file).wrap_err_with(|| format!("reading file {}", id_file.display()))?;
let keys = cluelessh_keys::EncryptedPrivateKeys::parse(&file)?;