Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

eventTstBaseCertificateGenerator.BeforeGenerateKeyPair

property BeforeGenerateKeyPair: tReturnInterfaceEvent read fBeforeGenerateKeyPair write fBeforeGenerateKeyPair;
Applications might use BeforeGenerateKeyPair for suppressing the built-in key generation (TstBasePKIXObjectGenerator.DoGenerateKeyPair, which keys off SubjectPublicKeyAlgorithm and DefaultSecurityStrength), e.g. if a preexisting key is to be used. Returning an assigned key in aResult short-circuits the default generation. aResult must be a private key if a root certificate or any other self-signed certificate is to be created; otherwise aResult might contain only a public key.