Description Usage Arguments Details Examples
The write_pem
functions exports a key or certificate to the standard
base64 PEM format. For private keys it is possible to set a password.
1 2 3 4 5 6 7 |
x |
a public/private key or certificate object |
path |
file to write to. If |
password |
string or callback function to set password (only applicable for private keys). |
pubkey |
a public key |
The pkcs1 format is a legacy format which only supports RSA keys and should
not be used anymore. It is only provided for compatibility with some old SSH
clients. Simply use write_pem
to export keys and certs to the recommended
format.
1 2 3 4 5 6 7 8 | # Generate RSA keypair
key <- rsa_keygen()
pubkey <- key$pubkey
# Write to output formats
write_ssh(pubkey)
write_pem(pubkey)
write_pem(key, password = "super secret")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.