-
-
Notifications
You must be signed in to change notification settings - Fork 972
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
Update official install guide for Certbot command #1432
Comments
I ran into the same situation
I resolved it by checking out the SSL server block example from the nginx default site
Then, inspecting the contents of snakeoil.conf
I added these two lines into the part of the mastodon nginx config file where the current commented lines are, replaced the example.com with my domain, then executed the certbot command Now, inspecting /etc/nginx/sites-available/mastodon shows two lines basically the same as the commented ones, but not commented out, and with a comment at the end saying "# managed by Certbot". The snakeoil cert references are removed, and this can be double-checked with I am running masto behind a reverse proxy, and my sysadmin has suggested that using Summary of all steps taken:
Caveats:
|
I ran into the same problem with nginx today. And this is the solution that I did exact the same, but I manage to installed it successfully before I saw this post. Think this should be included in the docs. Upvote here as a verification. |
Steps to reproduce the problem
Steps in the official install guide at https://docs.joinmastodon.org/admin/install/ needs to have the Certbot command updated.
Using the
certbot --nginx -d example.com
command fails since the nginx config points to a cert that has not been created yet.Document should specify to stop Nginx first with
systemctl stop nginx
.Then run certbot as:
certbot certonly --standalone -d example.com
Nginx should be able to be restarted running it's test to make sure the config is valid with the
systemctl start nginx
command.More info on discussion #17372
Expected behaviour
Certbot should be able to create certs for domain
Actual behaviour
Certbot causes Nginx config test to fail not allowing cert to be generated
Specifications
Happens with current version of install guide as of 25-01-2022.
The text was updated successfully, but these errors were encountered: