Hello,
I'm trying to issue and deploy a new LE cert on one of my sub domains for my OpenVPN server. I followed these instructions which were pretty standard. Here's what I did -
Generate a new certificate bundle using
sudo certbot certonly --standalone --preferred-challenges http -d connect.bestpickreports.com
Output the certificate text using cat and then copy and paste that output to a local file with the same filenames -
sudo cat /etc/letsencrypt/live/connect.bestpickreports.com/fullchain.pem
sudo cat /etc/letsencrypt/live/connect.bestpickreports.com/privkey.pem
When I deploy fullchain.pem for the cert and privkey.pem for the key, OpenVPN give me this error -
"Certificate Trust Warning - unable to get local issuer certificate"
When I check the generated certificates using openssl verify I also get that error (details included below).
FYI - because of the error I never actually deployed the certificates, so if you check my domain you'll see the old (currently valid) certificates and not the LE ones that I'm having trouble with.
Can anyone please help me figure out why this isn't working?
Details-
My domain is:
connect.bestpickreports.com
I ran this command:
openssl verify -CAfile chain.pem cert.pem
openssl verify fullchain.pem
It produced this output:
C = US, O = Internet Security Research Group, CN = ISRG Root X1
error 2 at 2 depth lookup: unable to get issuer certificate
error cert.pem: verification failed
CN = connect.bestpickreports.com
error 20 at 0 depth lookup: unable to get local issuer certificate
error fullchain.pem: verification failed
My web server is (include version):
OpenVPN Access Server v2.8.5 (I'm not sure what web server it runs off of, nginx?)
The operating system my web server runs on is (include version):
Ubuntu 18.04.4 LTS
My hosting provider, if applicable, is:
N/A
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
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
certbot 1.28.0
Additional Commands & Output:
~$ ls -l /etc/ssl/certs/ca-bundle.crt
ls: cannot access '/etc/ssl/certs/ca-bundle.crt': No such file or directory
~$ ls -l /etc/ssl/certs/ISRG_Root_X1.pem
lrwxrwxrwx 1 root root 51 Jun 11 2020 /etc/ssl/certs/ISRG_Root_X1.pem -> /usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt
~$ openssl version
OpenSSL 1.1.1 11 Sep 2018
Contents of fullchain.pem -
-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