AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Delphi 11.3 und Dateidownload über HTTPS
Thema durchsuchen
Ansicht
Themen-Optionen

Delphi 11.3 und Dateidownload über HTTPS

Ein Thema von MPreussner · begonnen am 30. Sep 2023 · letzter Beitrag vom 1. Okt 2023
Antwort Antwort
MPreussner

Registriert seit: 11. Okt 2008
Ort: Oldenburg
8 Beiträge
 
Delphi 11 Alexandria
 
#1

Delphi 11.3 und Dateidownload über HTTPS

  Alt 30. Sep 2023, 05:29
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
Martin Preussner
  Mit Zitat antworten Zitat
Benutzerbild von jaenicke
jaenicke
Online

Registriert seit: 10. Jun 2003
Ort: Berlin
9.358 Beiträge
 
Delphi 11 Alexandria
 
#2

AW: Delphi 11.3 und Dateidownload über HTTPS

  Alt 30. Sep 2023, 06:59
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.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
Kas Ob.

Registriert seit: 3. Sep 2023
214 Beiträge
 
#3

AW: Delphi 11.3 und Dateidownload über HTTPS

  Alt 30. Sep 2023, 08:49
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.
  Mit Zitat antworten Zitat
MPreussner

Registriert seit: 11. Okt 2008
Ort: Oldenburg
8 Beiträge
 
Delphi 11 Alexandria
 
#4

AW: Delphi 11.3 und Dateidownload über HTTPS

  Alt 30. Sep 2023, 09:51
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
Martin Preussner
  Mit Zitat antworten Zitat
MPreussner

Registriert seit: 11. Okt 2008
Ort: Oldenburg
8 Beiträge
 
Delphi 11 Alexandria
 
#5

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

  Alt 30. Sep 2023, 10:31
Hallo!'

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

Registriert seit: 30. Nov 2003
Ort: Luterbach (CH)
654 Beiträge
 
Delphi 12 Athens
 
#6

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

  Alt 30. Sep 2023, 22:56
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?
Roland
  Mit Zitat antworten Zitat
MPreussner

Registriert seit: 11. Okt 2008
Ort: Oldenburg
8 Beiträge
 
Delphi 11 Alexandria
 
#7

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

  Alt 1. Okt 2023, 11:39
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
Martin Preussner
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 20:46 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