Is if statement valid for cert client verification ?

Mik J mikydevel at yahoo.fr
Tue Mar 11 22:58:21 UTC 2025


Hello,

I remember from Nginx that "if" can be evil.

I would like to validate that if can be used in the a context where I would like to authenticate my clients with a certificate.

if ($ssl_client_s_dn !~ "O=MyCorp") { return 403; }

Do you have any recommendation ?

Thank you


More information about the nginx mailing list