I’m trying to get nginx to verify client certificate issued through the
following chain, with self-signed root: Root CA => Signing CA =>
CA => Client cert.
I installed root_CA.crt on the server, and on the client side, the certs
concatenated with cat client.crt subordinate_CA.crt signing_CA.crt >
cert-chain.pem. My nginx setting looks like this:
I tried to connect with curl -k server.url:443 --cert cert-chain.pem but
gives me error curl: (35) error reading X.509 key or certificate file.
try that with --key client.key then it gives me 400 Bad Request. I also
tried to test with openssl s_client and the result is similar.
I’ve verified that the nginx setting works if I have no intermediate CA,
i.e., Root CA => Client cert. It also works if my intermediate CA certs
installed on the server and only the leaf cert is on the client side.
However, in our case, the Signing CA and Subordinate CA certs cannot be
installed on server ahead of time. Any idea what to try next?
Posted at Nginx Forum: