You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the library. It saved me. However, I found that serialize_openssh() panic with the following error
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /Users/alisue/.asdf/installs/rust/1.54.0/registry/src/git.luolix.top-1ecc6299db9ec823/oss
hkeys-0.5.1/src/format/ossh_privkey.rs:321:42
stack backtrace:
0: rust_begin_unwind
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/std/src/panicking.rs:515:5
1: core::panicking::panic_fmt
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:92:14
2: core::panicking::panic
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/panicking.rs:50:5
3: core::option::Option<T>::unwrap
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/option.rs:388:21
4: osshkeys::format::ossh_privkey::encode_key
at /Users/alisue/.asdf/installs/rust/1.54.0/registry/src/git.luolix.top-1ecc6299db9ec823/osshkeys-0.5.1/src/format/ossh_privkey.rs:321:29
5: osshkeys::format::ossh_privkey::encode_ossh_priv
at /Users/alisue/.asdf/installs/rust/1.54.0/registry/src/git.luolix.top-1ecc6299db9ec823/osshkeys-0.5.1/src/format/ossh_privkey.rs:259:5
6: osshkeys::format::ossh_privkey::serialize_ossh_privkey
at /Users/alisue/.asdf/installs/rust/1.54.0/registry/src/git.luolix.top-1ecc6299db9ec823/osshkeys-0.5.1/src/format/ossh_privkey.rs:190:15
7: osshkeys::keys::KeyPair::serialize_openssh
at /Users/alisue/.asdf/installs/rust/1.54.0/registry/src/git.luolix.top-1ecc6299db9ec823/osshkeys-0.5.1/src/keys/mod.rs:342:16
8: rust_osshkeys_panic::main
at ./src/main.rs:8:9
9: core::ops::function::FnOnce::call_once
at /rustc/a178d0322ce20e33eac124758e837cbd80a6f633/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
Thanks for the library. It saved me. However, I found that
serialize_openssh()
panic with the following errorWith the following code
With the following
id_rsa
The text was updated successfully, but these errors were encountered: