When setting up the certificate (command output below) it used the staging server (apparently it shouldn’t by default?), so I get a certificate warning when trying to connect.
/etc/certbot/renewal/farfetchd.duckdns.org.conf contains this:
server = https://acme-staging.api.letsencrypt.org/directory
and when I try to change it to https://acme-v01.api.letsencrypt.org/directory and try to renew the certificate, it tells me this
Attempting to renew cert from /etc/certbot/renewal/farfetchd.duckdns.org.conf produced an unexpected error: You've asked to renew/replace a seemingly valid certificate with a test certificate (domains: farfetchd.duckdns.org). We will not do that unless you use the --break-my-certs flag!. Skipping.
even though the whole point of the config change is to not use the test certificate? It doesn’t seem to respect the server =
setting at all, since the /var/log/certbot/letsencrypt.log
file still shows that it’s trying to use staging…
This is the gitlab.ini file:
# this is the let's Encrypt config for our gitlab instance
# use the webroot authenticator.
authenticator = webroot
# the following path needs to be served by our webserver
# to validate our domains
webroot-path = /srv/www/public
# generate certificates for the specified domains.
domains = farfetchd.duckdns.org
# register certs with the following email address
email = <redacted>
# use a 4096 bit RSA key instead of 2048
rsa-key-size = 4096
My domain is: farfetchd.duckdns.org
I ran this command: certbot certonly -c gitlab.ini
It produced this output:
Saving debug log to /var/log/certbot/letsencrypt.log
Starting new HTTPS connection (1): acme-staging.api.letsencrypt.org
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for farfetchd.duckdns.org
Using the webroot path /srv/www/public for all unmatched domains.
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/certbot/live/farfetchd.duckdns.org/fullchain.pem. Your cert
will expire on 2017-11-21. To obtain a new or tweaked version of
this certificate in the future, simply run certbot again. To
non-interactively renew *all* of your certificates, run "certbot
renew"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
My web server is (include version): nginx/1.12.1 (comes with GitLab)
The operating system my web server runs on is (include version): openSuSE Leap 42.3
I can login to a root shell on my machine (yes or no, or I don’t know): yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no