mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-02 05:23:14 +00:00
misc improvements to cli (#2827)
* misc improvements to cli * switch host shorthand to H * simplify macro
This commit is contained in:
@@ -464,9 +464,9 @@ async fn previous_account_info(pg: &sqlx::Pool<sqlx::Postgres>) -> Result<Accoun
|
||||
.as_bytes(),
|
||||
)
|
||||
.with_ctx(|_| (ErrorKind::Database, "X509::from_pem"))?,
|
||||
compat_s9pk_key: SigningKey::generate(&mut rand::thread_rng()),
|
||||
compat_s9pk_key: SigningKey::generate(&mut ssh_key::rand_core::OsRng::default()),
|
||||
ssh_key: ssh_key::PrivateKey::random(
|
||||
&mut rand::thread_rng(),
|
||||
&mut ssh_key::rand_core::OsRng::default(),
|
||||
ssh_key::Algorithm::Ed25519,
|
||||
)
|
||||
.with_ctx(|_| (ErrorKind::Database, "X509::ssh_key::PrivateKey::random"))?,
|
||||
|
||||
Reference in New Issue
Block a user