#include <pssl.h>
Inheritance diagram for PSSLCertificate:
Public Member Functions | |
PSSLCertificate () | |
PSSLCertificate (const PFilePath &certFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) | |
PSSLCertificate (const BYTE *certData, PINDEX certSize) | |
PSSLCertificate (const PBYTEArray &certData) | |
PSSLCertificate (const PString &certString) | |
PSSLCertificate (const PSSLCertificate &cert) | |
PSSLCertificate & | operator= (const PSSLCertificate &cert) |
~PSSLCertificate () | |
operator x509_st * () const | |
BOOL | CreateRoot (const PString &subject, const PSSLPrivateKey &key) |
PBYTEArray | GetData () const |
PString | AsString () const |
BOOL | Load (const PFilePath &certFile, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) |
BOOL | Save (const PFilePath &keyFile, BOOL append=FALSE, PSSLFileTypes fileType=PSSLFileTypeDEFAULT) |
Protected Attributes | |
x509_st * | certificate |
|
Create an empty certificate. |
|
Create a new certificate given the file. The type of the certificate key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
Create certificate from the binary ASN1 DER encoded data specified.
|
|
Create certificate from the binary ASN1 DER encoded data specified.
|
|
Create certificate from the ASN1 DER base64 encoded data specified.
|
|
Create a copy of the certificate. |
|
Destroy and release storage for certificate. |
|
Get the certificate as ASN1 DER base64 encoded data. |
|
Create a new root certificate. The subject name is a string of the form "/name=value/name=value" where name is a short name for the field and value is a string value for the field for example: "/C=ZA/SP=Western Cape/L=Cape Town/O=Thawte Consulting cc" "/OU=Certification Services Division/CN=Thawte Server CA" "/Email=server-certs@thawte.com"
|
|
Get the certificate as binary ASN1 DER encoded data. |
|
Load certificate from file. The type of the certificate key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
Get internal OpenSSL X509 structure. |
|
Create a copy of the certificate. |
|
Save certificate to file. The type of the certificate key can be specified explicitly, or if PSSLFileTypeDEFAULT it will be determined from the file extension, ".pem" is a text file, anything else eg ".der" is a binary ASN1 file.
|
|
|