Export key or certificate
write_pem functions exports a key or certificate to the standard
base64 PEM format. For private keys it is possible to set a password.
write_pem(x, path = NULL, password = readline)write_der(x, path = NULL)write_ssh(pubkey, path = NULL)
- a public/private key or certificate object
- file to write to. If
NULLit returns the output as a string.
- string or callback function to set password (only applicable for private keys).
- a public key
# Generate RSA keypair key <- rsa_keygen() pubkey <- as.list(key)$pubkey # Write to output formats write_ssh(pubkey) write_pem(pubkey) write_pem(key, password = "super secret")
Looks like there are no examples yet.