# \#x509

**URL:** https://discuss.ocaml.org/tag/x509/668.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [Auth cohttp request with X509 certificate](https://discuss.ocaml.org/t/auth-cohttp-request-with-x509-certificate/14742)

<div class="topic-metadata">

**Author:** [@zbroyar](https://discuss.ocaml.org/u/zbroyar)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 12:53pm UTC](https://discuss.ocaml.org/t/auth-cohttp-request-with-x509-certificate/14742 "2024-06-04T12:53:21Z")

</div>

Hi here, I’ve spent some time playing with cohttp to make it authenticate a connection with my X509 certificate. Working code is below: (\* ocamlfind ocamlopt -thread -package lwt,tls,x509,cohttp,cohttp-lwt,lwt\_ppx,coht…
