benoitc / hackney

simple HTTP client in Erlang
Other
1.34k stars 427 forks source link

Add `peercert/1` function like `peername/1` #599

Open toddholmberg opened 4 years ago

toddholmberg commented 4 years ago

Is it possible to add a peercert/1 function that returns the peer SSL certificate via ssl:peercert/1?

toddholmberg commented 4 years ago

Ideally, this would be exposed at the top-level hackney.erl module.