Discuss this help topic in SecureBlackbox Forum
TElX509CertificateEx.BeginGenerate
Starts asynchronous operation of generation of new certificate with defined algorithm and key length.
Declaration
Parameters
Values:
The following algorithms may be used as public key algorithms:
|
|
Description
This method causes
TElX509CertificateEx object
to start asynchronous operation of generation of a new certificate based on specified security algorithm.
Specify the length of the resulting key(s) using
WordsInEncryptKey parameter.
All data of the generated certificate will be accessible via object properties and methods.
Before calling BeginGenerate you need to set
ValidFrom and
ValidTo properties.
BeginGenerate method can be used to generate self-signed certificates or certificates signed by Certificate Authority.
If you generate certificate signed by Certificate Authority, you need to call
SetCACertificate and
SetCAPrivateKey methods to specify certificate and private key of the issuer (CA).
Note, that for self-signed certififcates an instance of
TElX509CertificateEx class,
whose
BeginGenerate method is called, should have a Private Key. If the private key is absent, TElCertificateException is raised.