Parses a X509 Certificate from the provided PEM encoded data.
Creates a new and un-signed (empty) X509 certificate. Useful for generating X509 certificates programatically.
Returns the dateAfter field of the certificate in ASN1_GENERALIZEDTIME.
If the current date is "after" the date set here, the certificate will be invalid.
Returns the dateBefore field of the certificate in ASN1_GENERALIZEDTIME.
If the current date is "before" the date set here, the certificate will be invalid.
Checks if the underlying data structur of the Certificate is equal
Returns the Certificate in a PEM encoded string.
Sets the public/private keypair of an unsigned certificate.
Sets the serial number of the new unsigned certificate.
Returns the serial number of the Certificate
Sets the subject (who this certificate is for) of an unsigned certificate.
Signs the unsigned Certificate with the specified CA X509 Certificate and it's corresponding public/private keypair.
Returns the Certificate subject in a multi-line string.
Verifies that the Certificate was signed and issues by a CACert in the passed CertificateStore.
Certificate provides necessary functionality to create and read X509 Certificates.
Note, once a Certificate has been signed, it is immutable, and cannot be modified.
X509 Certificates are sometimes called SSL Certificates.
Example