Getting intermediate client certificates with custom module

bouvierh nginx-forum at forum.nginx.org
Thu Feb 4 20:00:40 UTC 2021


Hello!

I am using nginx in reverse proxy mode. When nginx proxy pass the
certificates upstream, I would also like to pass the full cert chain along
with it.

This is for an industrial application and I don't have full control on why
it is done this way. The only thing I can tamper with is Nginx.

Digging around a bit, I found out that getting the cert chain through an
environment variable is not possible:
https://forum.nginx.org/read.php?2,288553,288553#msg-288553.

However, if I write a custom module, is it possible to get the intermediate
certificate? Would you know which place in the code I should look at?

Thank you!
Hugues

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,290663,290663#msg-290663



More information about the nginx mailing list