read_key function (private keys) and
read_pubkey (public keys)
support both SSH pubkey format and OpenSSL PEM format (base64 data with a
---END header), and automatically convert where necessary. The functions assume
a single key per file except for
read_cert_bundle which supports PEM files
with multiple certificates.
The 'read_pem' function parses the PEM file into a header and a data payload. It is mostly useful for debugging.
1 2 3 4 5 6 7 8 9
Either a path to a file, a connection, or literal data (a string for pem/ssh format, or a raw vector in der format)
A string or callback function to read protected keys
Most versions of OpenSSL support at least RSA, DSA and ECDSA keys. Certificates must conform to the X509 standard.
password argument is needed when reading keys that are protected with a
passphrase. It can either be a string containing the passphrase, or a custom callback
function that will be called by OpenSSL to read the passphrase. The function should
take one argument (a string with a message) and return a string. The default is to
readline which will prompt the user in an interactive R session.
An object of class
pubkey which holds the data
in binary DER format and can be decomposed using
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.