UniDAC with SSL

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
abraao895
Posts: 9
Joined: Wed 26 Oct 2011 13:01

UniDAC with SSL

Post by abraao895 » Wed 31 Oct 2012 19:12

Hi,

I would like to display all the data that the UniConnection component transfer/receive in a Memo. I would like to see the SSL HandShake process. Is there a mode of implement this in my project? Thanks very much!

AndreyZ

Re: UniDAC with SSL

Post by AndreyZ » Thu 01 Nov 2012 11:37

Hello,

To show all queries that are made through TUniConnection, you can use the TUniSQLMonitor component and its OnSQL event. Here is a code example:

Code: Select all

procedure TForm1.UniSQLMonitor1SQL(Sender: TObject; Text: String;
  Flag: TDATraceFlag);
begin
  Memo1.Lines.Add(Text);
end;
Please specify in more details the functionality that concerns SSL you want to obtain. Also, please specify the database server you are working with.

abraao895
Posts: 9
Joined: Wed 26 Oct 2011 13:01

Re: UniDAC with SSL

Post by abraao895 » Thu 01 Nov 2012 12:19

Hi Andrey, thanks of your answer.

I am using the PostgreSQL Server 9.1. I would like to see the messages of negociation of SSL HandShake, like this:

SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL_connect:error in SSLv2/v3 read server hello A
SSL_connect:SSLv3 read server hello A
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server key exchange A
SSL_connect:SSLv3 read server done A
SSL_connect:SSLv3 write client key exchange A
SSL_connect:SSLv3 write change cipher spec A
SSL_connect:SSLv3 write finished A
SSL_connect:SSLv3 flush data
SSL_connect:error in SSLv3 read finished A
SSL_connect:error in SSLv3 read finished A
SSL_connect:SSLv3 read finished A
SSL handshake has read 1584 bytes and written 346 bytes
SSL-Session:

My intention is have assurance that my delphi project with unidac is using a SSL connection with my PostgreSQL.

Someone?

Post Reply