Hello,

I need do a TLS conection with the server tls://beta.registro.br (port 700)
using the certificate files client.der and client.p12 (made with openssl
from the sources root.pem and server.pem that I have). I have the openssl
installed too.

But I hadn't found help how I make this connection. I don't know the right
way to inform the certificate files. I tried things like this without
success:

...
uses
  ssl_openssl;
...
var
  sock: TTCPBlockSocket;
  s: string;
begin
  sock := TTCPBlockSocket.Create;
  try
    sock.SSL.PrivateKeyFile := ExtractFilePath(Application.ExeName) +
'\client.der';
    sock.SSL.PFXfile := ExtractFilePath(Application.ExeName) +
'\client.p12';
    sock.Connect('tls://beta.registro.br', '700) ');
    sock.SSLDoConnect;
    ...

What is the correct way to do a TLS conection?

Thanks in advance,

Evandro
------------------------------------------------------------------------------
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to