Authenticating Client Certificates with php

Asked 2 years ago, Updated 2 years ago, 51 views

Authenticate client certificate (pfx) with nginx
We are considering implementing it with php on the server.

1. Could you tell me where the contents of the client certificate are stored?
2. I would like to check the following in php, but could you tell me how to implement it?

■ Check contents
·Expiration date
·Subject
·Issuer
·Thumbprint

php nginx ssl

2022-09-29 21:19

1 Answers

The variable http://nginx.org/en/docs/http/ngx_http_ssl_module.html#variables, so for example, fastcgi_param SSL_CLIENT_I_DN$ssl_client_i_dn; can be passed to $_SERVER['SSL_CLIENT_I_DN'/code> on the PHP side.


2022-09-29 21:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.