Custom Certificate Issue #82
|
I got almost everything working now (see here) I got my static Website working with a custom Docker volume, I can access all my Web Interfaces through HTTPS with a valid Certificate under several subdomains by importing my Let's Encrypt Some Services (other than Websites) fail. For example, I have a Nextcloud (https://nextcloud.com) hosted on one of my computers, which is accessible through "https://cloud.server.com". Investigating these Issues, I found, that it seems to fail to verify the Root CA or the Intermediate CA Certificate. On my former Apache Reverse Proxy, I had these Lines in my conffiguration and everything worked:
So I removed the They got imported successfully and I still can access the Website through "https://cloud.server.com" with a valid Certificate, but the other Services still fail verifying the Root CA or the Intermediate CA Certificate. Investigating using cURL, with my former Apache Reverse Proxy everything works as expected: `curl -v https://cloud.server.com
But with nginx ignition I get the same error as with the `curl -v https://cloud.server.com
curl failed to verify the legitimacy of the server and therefore could not So the Server Certificate still is valid, but the Certificate chain fails to verify. |
Replies: 1 comment 3 replies
|
Hi @dpaessler. I'm sorry to hear that you are still having difficulty importing an external certificate. Please give me some time to reproduce the problem and understand what might be happening (thanks for all the details you shared). I will get back to you here with more details soon. |
@dpaessler, I was able to reproduce the problem and understand what is happening.
In summary: An empty line at the end of the
chain.pemfile is what was causing the problem, preventing Nginx Ignition from correctly importing the certificate, which is a bug.By fixing this and importing the certificate using the three separate files (
cert.pemas the public key,privkey.pemas the private key, andchain.pemas the certification chain), Nginx was configured correctly. Thecurlcommand now works on tests I've made, showing the same output as Apache.curl output before the fix