Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodTstRequestCertificateGenerator.Execute

procedure Execute(const aRequest: iCertificationRequest; aInfo : TObject = nil); overload;
Issue a certificate from aRequest. This is the entry point: the request is per-invocation DATA, not a design-time association, so it is a parameter and not a published property - it arrives at runtime from a socket or a file, cannot be streamed to a .dfm, and a property would leave a stale request behind after an exception and let a second call silently reissue the first one. aInfo keeps its inherited meaning - the CONSUMER's opaque context, passed to every handler so it can correlate the callbacks with its own registration record; the request never travels in it.

SubjectPublicKeyAlgorithm is set from the request's own key before the pipeline runs, because ImposeSubjectPublicKeyItem dispatches on that PROPERTY rather than on the key it is given: left alone, a previously configured algorithm would be imposed over the wrong key, or the run would die with 'SubjectPublicKeyAlgorithm not set' from deep inside.

CertificateWizard = ncwRootCA is refused: a root is self-signed with the SUBJECT's key, and this component holds no subject private key. A "self-signed" certificate signed with a requester's key certifies nothing.

The inherited Execute(aInfo) remains visible and still means what it always did - generate a key pair, compose a certificate from this component's own properties. On THIS component that is almost never what was meant, so it is refused at the first step; see GetIssuerCertificate and DoGenerateKeyPair.

One instance issues one certificate at a time: the request and the admission verdicts are per-invocation state on the component. A CA server issuing concurrently needs one component per thread.