YES !
YES !
I've successfully registered my first domain on Let's Encrypt with a Delphi Tokyo application !
Now it's time to clean the code, handling errors...you can prepare your credit card :D
I've successfully registered my first domain on Let's Encrypt with a Delphi Tokyo application !
Now it's time to clean the code, handling errors...you can prepare your credit card :D
You are lucky, I spent two days without success, then I bought one from godaddy for $10, which was more cheaper than the time spent trying all the ways with let's encrypt.
ReplyDeleteMohammed Nasman and you can use the certificat in a Delphi WebBroker application ?
ReplyDeletePaul TOTH, it's Unigui application.
ReplyDelete/prepared!
ReplyDeletePrepared, if it works with mORMot :)
ReplyDeleteLE certs work with any Delphi thing if you just install them right. IntraWeb has been running using optinoal LetsEncrypt certificates for a while now and we have more support coming.
ReplyDeleteChad Hower it's not about using a LE certificate, it's about requesting one and renew it from Delphi :)
ReplyDeletePaul TOTH IntraWeb servers will auto renew them for you transparently.
ReplyDeleteWhat do you mean by this exactly? Security certs are mainly for installing into websites. I'm puzzled what either one has to do with a Delphi app?
ReplyDeleteDavid Schwartz put a TidHTTPServer component on a form and you have a website, add a TidServerIOHandlerSSLOpenSSL component and you have a HTTPS server that needs a certificate
ReplyDeleteyou can also start a new WebBroker or DataSnap standalone server with HTTPS and you need also a certificate (AFAIK Indy is used also)
David Schwartz Web apps in Delphi. LE certificates expire every 3 months or so and have to be renewed....
ReplyDeletePaul TOTH Well, a little more info goes a long way sometimes! Thanks.
ReplyDeleteLooking forward this. Are you going to release it as a commercial or whatever?
ReplyDeleteI'll try to make some money for once :)
ReplyDeleteyou can find the compiled component on my Github repository
github.com - tothpaul/LetsEncryptDelphi
Any benefits compared to using free win-acme tool as described in this post, for example? https://www.tmssoftware.com/site/blog.asp?post=454
ReplyDeleteWagner Landgraf you can use HTTPS with Let's Encrypt for free with a lot of tools, just follow the tutorial and try harded if it fails.
ReplyDeleteWith my component you can embedded the process in your Delphi WebApplication by settings 3 properties and 2 events. The choice is yours.
Paul TOTH Does it handle renewal? Can it be integrated with the HTTP server in the mORMot framework? Thanks.
ReplyDeleteEdwin Yip Yes, just call periodically RegisterDomain()
ReplyDeleteI don't know mORMot but the component is compatible with anything, you just have to adapt the OnHttpChallenge event to your configuration.
For instance, for my own application, the HTTP port is handled by IIS so my event just stores the challenge file on disk instead of using a self hosted TidHTTPServer.
procedure TMain.OnHttpChallenge(Sender: TObject; const Domain, Token,
Thumbprint: string);
var
Stream: TFileStream;
Content: AnsiString;
begin
Stream := TFileStream.Create('D:\Data\www\.well-known\acme-challenge\' + Token, fmCreate);
try
Content := AnsiString(Token) + '.' + AnsiString(Thumbprint);
Stream.Write(Content[1], Length(Content));
finally
Stream.Free;
end;
end;
you also have to reload the certificate
procedure TMain.OnCertificate(Sender: TObject; Certificat: TStrings);
begin
Certificat.SaveToFile('..\keystore\domain.crt');
ButtonStopClick(Self);
StartServer(); // HTTPOptions.CertFile := '...'
end;
The Store is open store.execute.fr - Execute's Online Store !
ReplyDelete