pkcs7_encrypt {openssl}R Documentation

Encrypt/decrypt pkcs7 messages

Description

Encrypt or decrypt messages using PKCS7 smime format. Note PKCS7 only supports RSA keys.

Usage

pkcs7_encrypt(message, cert, pem = TRUE)

pkcs7_decrypt(input, key, der = is.raw(input))

Arguments

message

text or raw vector with data to encrypt

cert

the certificate with public key to use for encryption

pem

convert output pkcs7 data to PEM format

input

file path or string with PEM or raw vector with p7b data

key

private key to decrypt data

der

assume input is in DER format (rather than PEM)

See Also

encrypt_envelope


[Package openssl version 2.1.2 Index]