Comments (13)
Hey everyone, thank you for your patience!
The new 2.x branch now makes it much easier to specify multiple domains. You can now call the script like this to initialize it with multiple domains: ./init-letsencrypt.sh -d domain1.org -d domain2.org
π
from nginx-certbot.
do a PR <3
from nginx-certbot.
Thanks for sharing this. Was looking to add the same. Worked like a charm
from nginx-certbot.
The 2nd argument (production | staging) determines which docker-compose.$1
file is used later in the script. So that works if that's how you organize your docker-composes, otherwise the user has to modify accordingly. I'll create a PR shortly...
from nginx-certbot.
@dchersey I think it would be nicer to be more explicit here. So I suggest adding an -f
parameter that allows specifying the actual docker-compose.yml
path.
from nginx-certbot.
Well, it wasn't so flawless for me. For the first domain everything worked smoothly, but when it was running for the second one I got the following error:
Failed authorization procedure. <mydomain> (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://<mydomain>/.well-known/acme-challenge/VaCGMLcnszmYVc6afGPJbGwUS2SjuKhWABLcCv2HZkM: Connection refused
from nginx-certbot.
This worked for me. Thanks! I hope this is merged soon as the code on master is broken for multiple domains @wmnnd
from nginx-certbot.
I don't think it will, since the maintainer doesn't seem to focus on this script for the last few months
EDIT: I guess I was wrong π :)
from nginx-certbot.
I like the idea of calling the script with the domains as parameters. Thatβs so much more elegant!
Instead of using staging
and production
as arguments, I would suggest a --staging
switch, since production
doesn't seem to do anything.
Feel free to create a PR for this π
from nginx-certbot.
I was just working with this and came to a really close solution, came here to check for any pending PRs or issues.
Nice dude, this will help a lot of people o/
from nginx-certbot.
I also like this solution! I apologize if you get an email for some domains I was testing @dchersey i forgot to change the address before I ran it. However with your updated script I am getting:
req: Can't open "/etc/letsencrypt/live/domain-example.com/privkey.pem" for writing, No such file or directory
for each of the domains, do you know why i get that error?
from nginx-certbot.
@dchersey Same for me. I also got req: Can't open "/etc/letsencrypt/live/domain-example.com/privkey.pem" for writing, No such file or directory
from nginx-certbot.
Both the current and this modified init script just hang for me when getting dummy certs..
edit: solved by upgrading docker/docker-compose. not sure what the issue was but I recommend trying that for anyone else having a hanging issue.
from nginx-certbot.
Related Issues (20)
- Init script produces this error (some challenges failed) HOT 2
- Certbot failed to authenticate some domains HOT 3
- Problems creating certificates with subdomains HOT 8
- problems when setting up an application in a different docker-compose.yml HOT 1
- connection refused HOT 1
- Need Help on existing HTTP server conversion (on docker-compose) HOT 3
- Cant create private key file HOT 1
- Thank you for making this
- Nginx container stuck in a restart loop HOT 1
- Unable to connect to the app via https or browser HOT 1
- When setup renew, no nginx logs
- Turn off Matamo tracking in non-production environments
- Always challenge failed HOT 3
- Not creating a certificate for a subdomain HOT 3
- exec format errors HOT 1
- Configuration for certbot/dns-cloudflare
- Keep getting connection refused HOT 10
- Multiple domains don't really work well! HOT 5
- - HOT 2
- Challenges fail when using envsubst template for nginx configuration. 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 nginx-certbot.