Expand description
SSH-client for sending signing requests.
This module provides Signstar client. The client is used to connect to a Signstar host and request signatures for given files.
§Examples
use signstar_request_signature::Request;
use signstar_request_signature::ssh::client::ConnectOptions;
let options = ConnectOptions::target("localhost".into(), 22)
.append_known_hosts_from_file(known_hosts)?
.client_auth_agent_sock(std::env::var("SSH_AUTH_SOCK")?)
.client_auth_public_key(
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILHCXBJYlPPkrt2WYyP3SZoMx43lDBB5QALjE762EQlc",
)?
.user("signstar");
let mut session = options.connect().await?;
let request = Request::for_file("package")?;
let response = session.send(&request).await?;
// process response
Structs§
- Connect
Options - Connection options for sending a signature request.
- KeyValidator 🔒
- Validator for a host’s SSH keys and a list of
known_hosts
entries. - Session
- An open session with a host that can be used to send multiple signing requests.
Enums§
- Error
- SSH communication error.
Type Aliases§
- Result 🔒