Indy 9
|
The result value signals if you are pleased with peer's info. If you return false then the connection will be dropped, elsewhere you will keep the connection.
function TForm1.IdConnectionInterceptOpenSSL1VerifyPeer( Certificate: TIdX509): Boolean; begin ShowMessage(DateTimeToStr(Certificate.notBefore)); ShowMessage(Certificate.Issuer.OneLine); ShowMessage(Certificate.Subject.OneLine); Result := True; end;