Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

BuildCertificationRequest

function BuildCertificationRequest(aKeyComponent: TComponent; aDnsNames: TStrings; const aCommonName: string = ''): iCertificationRequest;
BuildCertificationRequest returns a signed PKCS#10 request. aKeyComponent is a TstRSAKey, TstECDSAKey or TstEdDSAKey and supplies both the subject public key and the signature. Every entry in aDnsNames becomes a dNSName SAN.

aCommonName is optional; leaving it empty produces the empty subject that modern server certificates use, and marks the SAN extension critical.