Skip to main content

init_primary_key

Function init_primary_key 

Source
pub fn init_primary_key(
    use_keyring: bool,
    force: bool,
) -> SshCliResult<SecretsStatus>
Expand description

Initializes primary-key in XDG file or keyring. Never prints the key.

ยงErrors

Returns an error if the key already exists without --force, RNG fails, or keyring/file I/O fails.