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

Clarification please on installing and renewing wildcard domains #1757

Open
blue928 opened this issue Jul 30, 2018 · 2 comments
Open

Clarification please on installing and renewing wildcard domains #1757

blue928 opened this issue Jul 30, 2018 · 2 comments

Comments

@blue928
Copy link

blue928 commented Jul 30, 2018

Hello! Thanks for a great script. I've run into a bit of trouble with auto-renew and wondering if I have set this up correctly.

I'm using Ubuntu 18.04 LTS with Nginx.

I ran this command to get my wildcard certificates for my domain:

sudo ./.acme.sh/acme.sh --issue --nginx -d gastonia.com -d ‘*.gastonia.com’ --dns dns_cf

This is in my crontab -e for my user account:
25 0 * * * "/home/myname/.acme.sh"/acme.sh --cron --home "/home/myname/.acme.sh" > /dev/null

Here is what I'm trying to achieve:
-- acquire wildcard certificate for my domain name
-- have acme.sh modify nginx files for me and copy over the certificate files
-- auto renew so I never have to log in and manually renew.

So, I'm a little confused. Do I always have to run acme.sh --install-cert (step 3), even if I'm using the --nginx flag? Or is that handled for me? Or does that not apply when using wildcard domains?

Finally, I had a certificate come up for renewal, but auto renewal failed. Instead, I had to manually issue the renewal certificate using SUDO. The instructions say that I don't have to be root user to renew, but not sure how to achieve that. I know --nginx requires root user, so wondering if that could have messed that up.

Thanks for the clarification!

Steps to reproduce

Debug log

acme.sh  --issue .....   --debug 2
@FernandoMiguel
Copy link

In order to modify the nginx vhost you need sudo
The cron on the user account will have the same problem, lacks sudo

But you have a bigger problem : you are using BOTH nginx AND DNS methods.
Pick just one.

And last, you should use the flags to set where you want to store the keys and point you nginx vhost there

@FernandoMiguel
Copy link

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

2 participants