represents the security certificate issued for a public key.
- A SecurityCertificate object can be obtained by importing a "PEM" file.
- SecurityCertificate[…]["Properties"] gives a list of available properties.
- SecurityCertificate[…]["prop"] can be used to extract properties of the certificate.
- Common properties of a SecurityCertificate include:
"Version" certificate format version "SerialNumber" serial number of the certificate "SignatureAlgorithm" algorithm used to sign the certificate "Issuer" information about issuing party "ValidityStartDate" certificate validity start date "ValidityEndDate" certificate validity end date "Subject" information about the certificate holder "PublicKey" the public key of the certificate holder "Extensions" additional extensions "DigitalSignature" digital signature of the certificate "SignedData" signed binary content from the certificate
- SecurityCertificate[…]["Parameters"] gives all the information contained in the object, as an association.
- SecurityCertificate structure follows X.509 certificate syntax as described in the IETF RFC 5280.
Examplesopen allclose all
Basic Examples (1)
Import a certificate from a file:
Discover the available properties of a SecurityCertificate:
See the certificate issuing authority:
Verify the signature in a self-signed certificate. Import the certificate:
In a self-signed certificate, the issuer and the subject of the certificate are the same entity:
Obtain the signer's self-certified public key:
Retrieve the bytes of the certificate that were signed:
Verify if the signature is valid for the key and the information on the certificate:
Verify a chain of certificates. Import a file containing a certification path:
In a valid certification path, the issuer of the client certificate is itself a subject of the next certificate in the chain:
Obtain the public key of the certificate authority (CA):
Retrieve the bytes of the client certificate that were signed:
Verify if the information in a client certificate was signed by the certificate authority's key:
Wolfram Research (2020), SecurityCertificate, Wolfram Language function, https://reference.wolfram.com/language/ref/SecurityCertificate.html.
Wolfram Language. 2020. "SecurityCertificate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SecurityCertificate.html.
Wolfram Language. (2020). SecurityCertificate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SecurityCertificate.html