I'm trying to get the client certificate chain and root from apache to my Java backend.
This is the relevant part of my apache config:
SSLOptions +StdEnvVars +ExportCertData
RequestHeader set "SSL_CLIENT_CERT" "%{SSL_CLIENT_CERT}e"
RequestHeader set "SSL_CLIENT_CERT_CHAIN_0" "%{SSL_CLIENT_CERT_CHAIN_0}e"
RequestHeader set "SSL_CLIENT_ROOT_CERT" "%{SSL_CLIENT_ROOT_CERT}e"
I am able to get client certificate but the root and intermediate certs are null
. I have verified from tcpdump that the root and intermediate certs are being sent to apache.
My apache version is 2.4.6.
I have looked at similar questions like
How to get a client certificate chain during a certificate auth with Apache?
SSL_CLIENT_CERT_CHAIN not being passed to backend server
but the answers did not fix my issue. Any ideas why they are not being passed? Thanks.