Description Usage Arguments Value Author(s) Examples
PKI.load.cert
creates a certificate obejct from a string,
connection or file.
PKI.verifyCA
verifies a certificate against a given chain of
trust.
PKI.pubkey
extracts public key from a certificate.
PKI.get.subject
extracts the subject name from the certificate.
PKI.get.notBefore
extracts the notBefore field from the certificate.
PKI.get.notAfter
extracts the notAfter field from the certificate.
1 2 3 4 5 6 | PKI.load.cert(what, format = c("PEM", "DER"), file)
PKI.verifyCA(certificate, ca)
PKI.pubkey(certificate)
PKI.get.subject(certificate)
PKI.get.notBefore(certificate)
PKI.get.notAfter(certificate)
|
what |
string, raw vector or connection to load the certificate from |
format |
format used to encode the certificate |
file |
filename to load the certificate from - |
certificate |
a certificate object (as returned by
|
ca |
a certificate object of the Certificate Authority (CA) or a list of such objects if multiple CAs are involved |
PKI.load.code
: a certificate object
PKI.verifyCA
: TRUE
is the certificate can be trusted,
FALSE
otherwise
PKI.pubkey
: public key object
PKI.get.subject
: string containing the subject information in
one-line RFC2253 format but in UTF8 encoding instead of MBS escapes.
NOTE: this is experimantal, we may choose to parse the contents and
return it in native R form as a named vector instead.
PKI.get.notBefore
: POSIXct value containing the datetime 'notBefore'
field fromt the certificate. This represents the earliest time at which the
certificate is valid.
PKI.get.notAfter
: POSIXct value containing the datetime 'notAfter'
field fromt the certificate. This represents the latest time at which the
certificate is valid.
Simon Urbanek
1 2 3 4 5 6 7 | ca <- PKI.load.cert(file=system.file("certs", "RForge-ca.crt", package="PKIplus"))
my.cert <- PKI.load.cert(readLines(system.file("certs", "demo.crt", package="PKIplus")))
PKI.verifyCA(my.cert, ca)
PKI.pubkey(my.cert)
PKI.get.subject(my.cert)
PKI.get.notBefore(my.cert)
PKI.get.notAfter(my.cert)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.