Discuss this help topic in SecureBlackbox Forum

TElIdFTPIOHandlerSocket.OnCertificateNeededEx

TElIdFTPIOHandlerSocket     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


This event is fired when the protocol requires a client certificate.

Declaration

[C#/Java]
    not available

[VB.NET]
    not available

[Pascal]
    property OnCertificateNeededEx : TSBCertificateNeededExEvent;
    TSBCertificateNeededExEvent = procedure (Sender: TObject; var Certificate : TElX509Certificate) of object;

[C++]
    not available

[PHP]
    not available

Parameters

  • Certificate - points to instance of TElX509Certificate class (see noted below)

Description

    This event is fired by TElIdFTPIOHandlerSocket when the negotiated protocol requires a client-side X509 certificate to be used during the handshake. TElIdFTPIOHandlerSocket fires OnCertificateNeededEx event consequently, until the nil/NULL value is passed as Certificate parameter. This gives the ability to pass a certificate chain to server, not only a single certificate. This event should be handled the following way:

  • Pass the whole certificate chain, starting from end-entity certificate with a corresponding private key.
  • When the chain is over, pass nil as Certificate parameter.

OnCertificateNeededEx can accept the certificate which belongs to the certain chain. In this case the whole chain is sent and OnCertificateNeededEx is not fired further.

See also:     OnCertificateValidate    

Discuss this help topic in SecureBlackbox Forum