SecurityCertificate

SecurityCertificate[assoc]

represents the security certificate issued for a public key.

Details

  • 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.

Examples

open allclose all

Basic Examples  (1)

Import a certificate from a file:

Discover the available properties of a SecurityCertificate:

See the certificate issuing authority:

Obtain a public key contained in the certificate:

Scope  (3)

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:

Extract the signature:

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:

Extract the signature:

Verify if the information in a client certificate was signed by the certificate authority's key:

Get all the information contained in a certificate:

Wolfram Research (2020), SecurityCertificate, Wolfram Language function, https://reference.wolfram.com/language/ref/SecurityCertificate.html.

Text

Wolfram Research (2020), SecurityCertificate, Wolfram Language function, https://reference.wolfram.com/language/ref/SecurityCertificate.html.

CMS

Wolfram Language. 2020. "SecurityCertificate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SecurityCertificate.html.

APA

Wolfram Language. (2020). SecurityCertificate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SecurityCertificate.html

BibTeX

@misc{reference.wolfram_2024_securitycertificate, author="Wolfram Research", title="{SecurityCertificate}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SecurityCertificate.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_securitycertificate, organization={Wolfram Research}, title={SecurityCertificate}, year={2020}, url={https://reference.wolfram.com/language/ref/SecurityCertificate.html}, note=[Accessed: 22-November-2024 ]}