SSL_CTX_use_PrivateKey failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:dsrlearn.com

I ran this command:certbot certonly --preferred-challenges=dns --manual --agree-tos --email srinivasarao10247@gmail.com --server https://acme-v02.api.letsencrypt.org/directory --work-dir=. --config-dir=. --logs-dir=. --csr dsrlearn.csr -d dsrlearn.com -d *.dsrlearn.com

It produced this output: i ran nginx -t got SSL_CTX_use_PrivateKey failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)

My web server is (include version):1.21.4

The operating system my web server runs on is (include version):ubuntu 20.04

My hosting provider, if applicable, is:upcloud

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):1.23.0

It would appear that your Nginx configuration points to a Key which does NOT match the Certificate.

Could you start by posting your Nginx configuration?

1 Like

This is a duplicate post from:

2 Likes