Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certbot: Clean up to use --standalone rather than waiting for nginx to start #142

Closed
timabbott opened this issue Jul 24, 2018 · 3 comments
Closed

Comments

@timabbott
Copy link
Member

The initial certbot implementation in #139 is super handy, but it has a somewhat awkward mechanism where we first generate a self-signed cert (so nginx will start), and then boot the machine (running the certbot job in the background), and the certbot job waits for nginx to start, and then runs certbot to create the cert.

It would be cleaner to e.g. run certbot for this purpose with certbot --standalone (rather than the nginx mode) before we've started nginx (which happens indirectly through the supervisord startup); that would eliminate the need for both the temporary self-signed certificate as well as the run-in-the-background messyness.

@i5hi
Copy link

i5hi commented Sep 7, 2022

With SSL_CERTIFICATE_GENERATION: "certbot" when I access our zulip server at the given domain, it still uses the self-signed certificate.

Additionally, if I run docker-compose restart the zulip container is stuck at an interactive certbot promt as follows:

You have an existing certificate that has exactly the same domains or certificate name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/zulip.stackmate.org.conf)

What would you like to do?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Keep the existing certificate for now
2: Renew & replace the cert (limit ~5 per 7 days)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
An unexpected error occurred:
EOFError
Please see the logfiles in /var/log/letsencrypt for more details.
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 

@i5hi
Copy link

i5hi commented Nov 29, 2022

I had to run ./sbin/certbot-deploy-hook inside the Zulip container to get it to work

@andersk
Copy link
Member

andersk commented Dec 23, 2022

Using standalone mode isn’t a good plan because it would reintroduce zulip/zulip#20593.

(For those reporting that current certbot support is broken, that’s a different issue: #381.)

@andersk andersk closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants