Help with Let's Encrypt auto renewal - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Help with Let's Encrypt auto renewal (/thread-427.html) |
Help with Let's Encrypt auto renewal - ioan - 06-18-2018 I'm trying to see if I can configure "Let's Encrypt" to work with Intraweb. I'm pretty sure the certificates work fine, but I have problems with the auto renewal that has to run by itself in a scheduled task. I'm using win-acme: https://github.com/PKISharp/win-acme When trying to obtain a certificate, you run a the following command: Code: letsencrypt.exe --plugin manual --emailaddress my@email.com --manualhost www.somewebsite.com --webroot D:\myapp\wwwroot --test After running the command, letsencrypt.exe creates a directory in d:\myapp\wwwroot, something like /.well-known/acme-challenge/ with a temporary file inside (aaabbbccc) that "let's encrypt" needs access to, for verification. The problem I'm having is that after I run the letsencrypt.exe command, if I try to open Code: http://www.somewebsite.com/.well-known/acme-challenge/aaabbbccc it won't work, intraweb doesn't let me have (or at least I don't know to make it work) a path like that to access a static file. What's the best way to do this? Thanks. RE: Help with Let's Encrypt auto renewal - Jose Nilton Pace - 06-18-2018 Hi Ioan, try to put inside wwwroot: Code: D:\myapp\wwwroot\.well-known\acme-challenge\aaabbbccc RE: Help with Let's Encrypt auto renewal - ioan - 06-18-2018 (06-18-2018, 08:46 PM)JNPSoftware Wrote: Hi Ioan, try to put inside wwwroot: It seems that if I have a file there with a registered mime type (example .txt) works fine, if there is no extension (the way the letsencrypt.exe makes it), it doesn't work. Can I serve a static file that has no extension? RE: Help with Let's Encrypt auto renewal - Jose Nilton Pace - 06-18-2018 In my case i use ISAPI and server directly. [attachment=23] RE: Help with Let's Encrypt auto renewal - ioan - 06-18-2018 I found a solution and so far works fine: Code: procedure TIWServerController.IWServerControllerBaseNewSession(aSession: TIWApplication); RE: Help with Let's Encrypt auto renewal - Alexandre Machado - 06-20-2018 (06-18-2018, 09:58 PM)ioan Wrote: I found a solution and so far works fine: Hi Ioan, We had the same issue recently in one of our applications and I'm seriously thinking about adding built-in support for this kind of stuff in IW 15 code base. It will make life much easier :-) Thanks for sharing your solution RE: Help with Let's Encrypt auto renewal - kudzu - 06-20-2018 A built in tool would be great! RE: Help with Let's Encrypt auto renewal - ioan - 02-04-2019 (06-18-2018, 09:58 PM)ioan Wrote: I found a solution and so far works fine: It seems that the above solution doesn't work with the latest intraweb version. If I try to request http://localhost/.well-known/acme-challenge/aa, the application never gets in IWServerControllerBaseNewSession and returns a "404 not found" error page. RE: Help with Let's Encrypt auto renewal - joel - 08-01-2020 (06-20-2018, 01:46 AM)Alexandre Machado Wrote:(06-18-2018, 09:58 PM)ioan Wrote: I found a solution and so far works fine: Alex, Does iw15.2.10 solve the issue of allowing the let's encrypt renewal process work and find the renewal file under "well-known/acme-challenge/asadfff" work? RE: Help with Let's Encrypt auto renewal - joel - 08-02-2020 (08-01-2020, 03:55 AM)joel Wrote:(06-20-2018, 01:46 AM)Alexandre Machado Wrote:(06-18-2018, 09:58 PM)ioan Wrote: I found a solution and so far works fine: I think I found the answer: https://www.atozed.com/forums/printthread.php?tid=1383 |