I am using origin server to create a pem file I want to use for NGINX. But when I copy them both over (cert.pem and key.pem) and try running I get…
2022-11-27 20:46:14 nginx: [emerg] cannot load certificate "/usr/src/cert.pem": PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name:no start line:Expecting: TRUSTED CERTIFICATE)
What is up I see a <Can’t link to the SO post> that says it needs trusted in the header.
See <wiki-link> for all the above it has a good discussion/presentation of options. Now in your case the error message was telling you it expected to have a content written as such: -----BEGIN TRUSTED CERTIFICATE----- ... -----END TRUSTED CERTIFICATE-----
But I am not sure how to do that. How do I get this to work with NGINX? Do I just change the header?