Jump to content
limelect

SSL connection

Recommended Posts

I cannot communicate with my SSL site

I cannot communicate to any HTTPS://

What am I doing wrong?

 

function GetUpDate(Link: string): string;
var
  S: string;
  IdHTTP: TIdHTTP;
  SSL: TIdSSLIOHandlerSocketOpenSSL;

 

begin
  IdHTTP := TIdHTTP.Create(form1);
  try
    SSL := TIdSSLIOHandlerSocketOpenSSL.Create(IdHTTP);
    with SSL.SSLOptions do
    begin
      Method := sslvTLSv1_1;  <<<< I tried them all
      Mode := sslmBoth;
      SSLVersions := [sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1,
        sslvTLSv1_2];

     end;
      IdHTTP.IO.Handler := SSL;
     //    S := IdHTTP.Get(Link);
      S := IdHTTP.Get('https://limelect.com/UpDate/document-projects.txt');

      result := S;
  except
    result := '';
    ShowMessage('Could not get VERSION information from the INTERNET');
  end;
  IdHTTP.Free;
  SSL.Free;
end;

 

I do not want to use any DLL plz.
 

Screenshot - 30_01_2024 , 10_14_07.jpg

Edited by limelect

Share this post


Link to post
4 minutes ago, limelect said:

D10.2.3 Indy 10 AND NO DLL

On Delphi 10.2 works well too.

Indy requires the openSSL libraries for SSL/TLS connections.

Share this post


Link to post

I know there is a way without DLL.

Am I wrong?

Any suggestion?

Edited by limelect

Share this post


Link to post
4 minutes ago, limelect said:

I know there is a way without DLL.

Am I wrong?

I have not heard of a way without them. I might be wrong though

 

4 minutes ago, limelect said:

Any suggestion? 

Just place the DLLs with your executable

Edited by PeaShooter_OMO

Share this post


Link to post
38 minutes ago, limelect said:

    Method := sslvTLSv1_1;  <<<< I tried them all
      Mode := sslmBoth;
      SSLVersions := [sslvSSLv2, sslvSSLv23, sslvSSLv3, sslvTLSv1, sslvTLSv1_1,
        sslvTLSv1_2];

You don't need to set Method. Just use SSLVersions

 

SSLVersions sets Method automatically so you setting Method is not required at all.

Edited by PeaShooter_OMO

Share this post


Link to post

Tried that too allready

Tried all out of frustration

Edited by limelect

Share this post


Link to post
25 minutes ago, limelect said:

I know there is a way without DLL.

Am I wrong?

Any suggestion?

https://www.yunqa.de/delphi/products/openssl/index

 

remove the need to OpenSSL altogether if the need is only for secure connection 

https://www.devart.com/sbridge/ great price, full source, decent performance and extensive documentation with DevArt support engine, from https://www.devart.com/sbridge/editions.html also with full SSH support !

https://www.streamsec.com/index.php?id=orderstrsecii v2.3 is old but still working last time i used it

https://www.streamsec.com/index.php?id=orderstrseciv v4 is more expensive, never used it

Share this post


Link to post

Thanks, everybody

 

I incorporated  Indy.SChannel into my software and it works great


And why not dll because what for if there is an option without them?

I like to make my software without dll as much as possible.

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×