Supporting TLS client certificate in PHP?

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.

On Sun, Dec 13, 2020 at 11:12 AM C?me Chilliet <come at chilliet.eu> wrote:

> Hello,
>
> My server is implemented in PHP and I would like add client certificate
> support, but I cannot seem to find the right option for this.
>
> I tried setting capture_peer_cert to true in the context options, but it
> does not seem to work, and the documentation is, well, sporadic.
>
> You can read my code on gemini://
> code.lanterne.chilliet.eu/vendor/mcmic/gemini-server/src/Server.php
>
> Are there any Gemini server in PHP with client cert support?
>
> C?me
>
>
>

-- 
Jansen Price
612-886-5065
jansen.price at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20201213/ef9a
0e94/attachment.htm>

---

Previous in thread (1 of 10): 🗣️ Côme Chilliet (come (a) chilliet.eu)

Next in thread (3 of 10): 🗣️ Côme Chilliet (come (a) chilliet.eu)

View entire thread.