title: "SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch" even when my Key and CRT match
body: <p>I just generated a new CSR and key for my server and I can't seem to get this working. This isn't the first time I have rekeyed.. I get when running <code>sudo nginx -t</code>:</p>
  <pre><code>nginx: [emerg] SSL_CTX_use_PrivateKey_file(&quot;/home/ubuntu/code/www/ssl/xxxxxxx.xxx.key&quot;) failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch)
  nginx: configuration file /etc/nginx/nginx.conf test failed
  </code></pre>
  <p>I have tried :</p>
  <pre><code>openssl x509 -in /path/to/yourdomain.crt -noout -modulus | openssl sha1
  openssl rsa -in /path/to/your.key -noout -modulus | openssl sha1
  </code></pre>
  <p>And: <a href="https://decoder.link/matcher/" rel="nofollow noreferrer">https://decoder.link/matcher/</a></p>
  <p>And they both indicate a match. What else could be the issue?</p>
  <p>Note: I have also checked if my CRT and CSR are valid through the GoDaddy SSL Tools.</p>