---
title: "Eroare Nginx &#8222;error:0B080074:x509 certificate routines: X509_check_private_key:key values mismatch&#8221;"
url: "https://www.hostx.ro/kb/eroare-nginx-error-0b080074-x509-certificate-routines-x509-check-private-key-key-values-mismatch/"
updated: "2026-07-24"
category: Erori instalare certificat SSL
---

# Eroare Nginx &#8222;error:0B080074:x509 certificate routines: X509_check_private_key:key values mismatch&#8221;

Eroarea „error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch” pe Nginx are de obicei una din două cauze.

## 1. Cheia nu corespunde certificatului

La generarea CSR-ului cu OpenSSL, cheia și CSR-ul pot fi salvate în directoare diferite. Găsește cheia:

```
find / -name "*.key"
```

Compară apoi certificatul cu cheia — valorile trebuie să fie identice:

```
openssl x509 -noout -modulus -in /cale/catre/domeniu.crt | openssl md5
openssl rsa -noout -modulus -in /cale/catre/cheie.key | openssl md5
```

## 2. Ordinea greșită a certificatelor în bundle

Certificatele trebuie concatenate în ordinea **certificatul domeniului → intermediar(e) → root**, folosind bundle-ul furnizat de autoritatea ta de certificare:

```
cat domeniu.crt intermediar.crt root.crt >> nginx_bundle.crt
```

Configurează virtual host-ul pentru portul 443:

```
server {
    listen 443 ssl;
    server_name domeniul_tau;
    ssl_certificate     /cale/catre/nginx_bundle.crt;
    ssl_certificate_key /cale/catre/cheie.key;
}
```

Reîncarcă Nginx: `nginx -s reload`
<template id="hostx-kb-related-holder"><section class="hostx-kb-related" aria-label="Articole similare"><h2 class="hostx-kb-related__title">Articole similare</h2><div class="hostx-kb-related__grid"><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/eroare-apache-untrusted-si-missing-intermediate-certificate/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Eroare Apache: Untrusted și Missing Intermediate Certificate</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/eroarea-sn-bad-tag-value-or-cannot-find-certificate-request-associated-with-the-certificate-pe-servere-iis-7/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Eroare „Cannot find the certificate request&#8221; / „ASN1 bad tag value&#8221; în IIS</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/eroare-instalare-certificat-ssl-in-tomcat-input-not-an-x-509-certificate/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Eroare instalare certificat SSL în Tomcat: Input not an X.509 certificate</span></a><a class="hostx-kb-related__card" href="https://www.hostx.ro/kb/eroare-nginx-apache-0906d066-pem-routines-pem-read-bio-bad-end-line/"><span class="hostx-kb-related__ico"><svg aria-hidden="true" focusable="false"
  class="lucide lucide-file-text"
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
>
  <path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" />
  <path d="M14 2v5a1 1 0 0 0 1 1h5" />
  <path d="M10 9H8" />
  <path d="M16 13H8" />
  <path d="M16 17H8" />
</svg></span><span class="hostx-kb-related__name">Eroare Nginx / Apache: 0906D066:PEM routines:PEM_read_bio:bad end line</span></a></div></section></template>