Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Netzwerke (https://www.delphipraxis.net/14-netzwerke/)
-   -   Delphi Delphi 11.3 und Dateidownload über HTTPS (https://www.delphipraxis.net/213814-delphi-11-3-und-dateidownload-ueber-https.html)

MPreussner 30. Sep 2023 05:29

Delphi 11.3 und Dateidownload über HTTPS
 
Hallo!

Ich bin am Verzweifeln. Ich schaffe es nicht mit Indy, IP*Works oder ICS per HTTPS eine Binärdatei von meinem VPS zu laden. Vermutlich muss ich das Let's Encrypt-Zertifikat irgendwie einbinden. Nur habe ich keine Ahnung. Wer kann mir die Augen öffnen?

LG,
Martin

jaenicke 30. Sep 2023 06:59

AW: Delphi 11.3 und Dateidownload über HTTPS
 
Ein Zertifikat brauchst du dafür nur, wenn es eine Authentifizierung des Clients per Client-Zertifikat gibt.

Ist die Datei per URL im Browser direkt erreichbar oder musst du dort Zugangsdaten oder ein Zertifikat angeben?

Bei Indy darfst du nicht vergessen einen passenden IOHandler wie TIdSSLIOHandlerSocketOpenSSL zu verwenden und die passenden DLLs neben der Exe abzulegen.

Ohne Quelltext und Fehlermeldungen lässt sich aber nicht sagen, warum es bei dir nicht geklappt hat.

Kas Ob. 30. Sep 2023 08:49

AW: Delphi 11.3 und Dateidownload über HTTPS
 
Zitat:

Zitat von MPreussner (Beitrag 1527544)
Nur habe ich keine Ahnung. Wer kann mir die Augen öffnen?

Assuming you only need the LetsEncrypt certificate, right ?

Anyway, either you can grab one manually using 3rd party software and there is plenty of them, most of them have the ability for scheduling and automatic download/update the certificate into files or into storage.... or go with Delphi implemented one with ICS.

It is called ACME protocol, https://en.wikipedia.org/wiki/Automa...nt_Environment , to my knowledge only ICS have it fully implemented and provided publicly, i suggest to at least use ICS for the certificate part if you are already using or familiar with different network framework/package.

I implemented my own ACME on top of my old SecureBlackBox and most the time using it with RealThinClient.

Sorry, if i missed the point of the question, though hope that helps.

MPreussner 30. Sep 2023 09:51

AW: Delphi 11.3 und Dateidownload über HTTPS
 
Zitat:

Zitat von jaenicke (Beitrag 1527545)
Ein Zertifikat brauchst du dafür nur, wenn es eine Authentifizierung des Clients per Client-Zertifikat gibt.

Ist die Datei per URL im Browser direkt erreichbar oder musst du dort Zugangsdaten oder ein Zertifikat angeben?

Die Datei ist direkt über den Browser zu erreichen: https://www.martin-preussner.org/dow...purgesetup.exe

Bei Indy darfst du nicht vergessen einen passenden IOHandler wie TIdSSLIOHandlerSocketOpenSSL zu verwenden und die passenden DLLs neben der Exe abzulegen.

Habe ich !

Ohne Quelltext und Fehlermeldungen lässt sich aber nicht sagen, warum es bei dir nicht geklappt hat.

Ich werde Quellcode und Fehlermeldung noch nachtragen.
Danke und Gruß,
Martin

MPreussner 30. Sep 2023 10:31

AW: Delphi 11.3 und Dateidownload über HTTPS gelöst!
 
Hallo!'

So, habe es nun hinbekommen. Quellcode ist Sample #1 von https://www.swissdelphicenter.ch/de/showcode.php?id=412.
LG Martin

blawen 30. Sep 2023 22:56

AW: Delphi 11.3 und Dateidownload über HTTPS gelöst!
 
Zitat:

Zitat von MPreussner (Beitrag 1527549)
Hallo!'

So, habe es nun hinbekommen. Quellcode ist Sample #1 von https://www.swissdelphicenter.ch/de/showcode.php?id=412.
LG Martin

Hallo Martin
Wo lag die Knacknuss?

MPreussner 1. Okt 2023 11:39

AW: Delphi 11.3 und Dateidownload über HTTPS gelöst!
 
Zitat:

Zitat von blawen (Beitrag 1527565)
Zitat:

Zitat von MPreussner (Beitrag 1527549)
Hallo!'

So, habe es nun hinbekommen. Quellcode ist Sample #1 von https://www.swissdelphicenter.ch/de/showcode.php?id=412.
LG Martin

Hallo Martin
Wo lag die Knacknuss?

Es lag nicht am Sourcecode, sondern Fail2Ban hatte meine IP ausgesperrt. Tja.
LG, Martin


Alle Zeitangaben in WEZ +1. Es ist jetzt 19:40 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz