Supporting TLS client certificate in PHP?

Côme Chilliet come at chilliet.eu
Tue Dec 15 20:19:36 GMT 2020


Le dimanche 13 décembre 2020, 18:28:38 CET Jansen Price a écrit :
> I ran into the same problem when trying to add client certificate support
> on my PHP server (https://tildegit.org/sumpygump/orbit)
> 
> I think that `capture_peer_cert` is intended to only work
> with stream_socket_client and not with socket servers. I started looking at
> the source code of PHP to see if I could find the part that handles the TLS
> handshake to find out if there is any way to get access to the cert that
> came along with the connection, but I have not been successful in my search
> yet.

I tried posting on php-internals ML, but no answer so far:
https://news-web.php.net/php.internals/112495

We can try the bug tracker but I’ve seen bugs related to streams and/or encryption with no answer since a long time :-/

I think the best solution is to try to come with a PR.

Côme




More information about the Gemini mailing list