When a connection is secure, sometimes it's interesting to get certificate info to show user company name for example. To do this, just use OnSSLGetHandler, where you can access to some SSL properties and handle OnVeryPeerEvent, where there is a parameter called Certificate, where you can get certificate info.
procedure OnSSLGetH
TwsSSLHandler; var aSSLHandler: TIdSSLIOHandlerSocketBase);
begin
aSSLHandler := TIdSSLIOHandlerSocketOpenSSL.C
TIdSSLIOHandlerSocketOpenSSL(a
TIdSSLIOHandlerSocketOpenSSL(a
TIdSSLIOHandlerSocketOpenSSL(a
TIdSSLIOHandlerSocketOpenSSL(a
end;
function OnVerifyPeerEve
ADepth: Integer): boolean;
begin
Result := True;
// ... read certificate properties
// Certificate
end;