Learn R Programming

inlmisc (version 0.3.2)

AddCertificate: Add X.509 Certificate

Description

This function adds a X.509 certificate to your bundle of certificate authority root certificates (CA bundle). The X.509 certificate is used to authenticate clients and servers. And the CA bundle is a file that contains root and intermediate certificates.

Usage

AddCertificate(file, header = NULL)

Arguments

file

'character'. Path (or a complete URL) to the file containing the X.509 certificate.

header

'character'. Header line to identify the certificate (optional).

Examples

Run this code
# NOT RUN {
# Install the U.S. Department of Interior (DOI) certificate:
# }
# NOT RUN {
AddCertificate(file = "http://sslhelp.doi.net/docs/DOIRootCA2.cer",
               header = "DOI Root CA 2")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab