Discuss this help topic in SecureBlackbox Forum
TElOCSPServer.OnSigningCertificatesNeeded
This event is fired when certificates are needed to sign an OCSP response.
Declaration
Parameters
Description
This event is an alternative to providing a predefined set of certificates via SigningCertStorage. The event handler should return a descendant of TElCustomCertStorage (typically, TElMemoryCertStorage object) with the certificates that should be used for signing and should be included in the response. There should be one certificate with the private key accessible for signing (you can include more than one certificate with the privaete key, but only one will be used). To choose the certificates to be added to the storage and provide them to the server, you can inspect the value of RequestCertificates property.
Your code remains the owner of the storage object, so the object can be re-used, and your code should dispose of the storage when it is no longer needed. If you don't return the storage or it is not usable (no certificates included, etc.), ProcessRequest method returns with an error and doesn't return any response.