Comments (3)
Hi @peixotorms
The force https rewrite rules will only be applied when you add a -f
, -F
, or --force-https
option with the vhsetup.sh script.
Thanks for the tip, but my site's cert renewal seems to be working fine with HTTPS redirect. Did you hit any cert renewal issues?
from ols1clk.
https://letsencrypt.org/docs/challenge-types/
With HTTP-01 challenge it calls http://<YOUR_DOMAIN>/.well-known/acme-challenge/
so http needs to be "available" on that endpoint.
If you are renewing certificates automatically, when the certificate is due, it will send an http request.
If you have http to https globally, without the exclusion (ie when you set this on cloudflare for example), it fails to renew the certificates.
I have experienced this on hundreds of sites, as I am a developer.
The only option to allow it to renew, is to remove the redirect for that endpoint.
From letsencrypt:
Our implementation of the HTTP-01 challenge follows redirects, up to 10 redirects deep. It only accepts redirects to “http:” or “https:”, and only to ports 80 or 443. It does not accept redirects to IP addresses. When redirected to an HTTPS URL, it does not validate certificates (since this challenge is intended to bootstrap valid certificates, it may encounter self-signed or expired certificates along the way).
The HTTP-01 challenge can only be done on port 80. Allowing clients to specify arbitrary ports would make the challenge less secure, and so it is not allowed by the ACME standard.
So, it will follow the redirects to https as well, but the challenge can only be done on port 80 hence I had this fail, I think on all cases.
You can run the script to install the domain, but 2 months later when you try to renew, it's failing at least for all of my client sites.
@Code-Egg I see you marked as complete. Did you implement this, or simply closed it? Thank you
from ols1clk.
Hi @peixotorms,
I tried to launch a site LE and force the HTTPS rule applied, and then tried the dry run to renew the cert and it works, that's why I closed it.
Now, I'm checking the OLS release log, it seems the skip rewrite processing for LE verification req has been a built-in feature since 1.6.6, that's why I did not hit this issue.
from ols1clk.
Related Issues (20)
- --wordpresspath missing on vhsetup.sh HOT 3
- Add support for Percona Server for MySQL HOT 3
- Add SSL to ols1clk HOT 1
- Make DB packages optional or skippable HOT 4
- Allow different "admin" user HOT 2
- add missing php packages HOT 5
- [Feature Request] Support for MariaDB 10.11 HOT 1
- Multiple issues and requests HOT 3
- login page error after ssl install HOT 4
- Database create is failing HOT 1
- Script fails due to repo script no longer working HOT 2
- Option to Enable ModSec and apply OWASP ModSecurity Core Rule Set HOT 3
- script doesn't install memcached package HOT 4
- Additional flags and settings for vhost? HOT 3
- Domain Aliases/Administrator Email on new vhosts HOT 1
- can i upgrade php version HOT 2
- Ubuntu 24.04 HOT 3
- Debian 12 HOT 1
- Does the script work properly with Almalinux? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ols1clk.