write_pem

0th

Percentile

Export key or certificate

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.

Usage
write_pem(x, password = readline, path = NULL)

write_der(x, path = NULL)

Arguments
x
a public/private key or certificate object
password
string or callback function to set password (only applicable for private keys).
path
file to write to. If NULL it returns the output as a string.
Aliases
  • write_der
  • write_pem
Documentation reproduced from package openssl, version 0.6, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.