From e031713c0e8bd871248dbbbbdec1ea28609f4431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 11 Jun 2019 15:53:47 +0200 Subject: Joe Armstrong the rubber duck --- docs/index.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/index.xml') diff --git a/docs/index.xml b/docs/index.xml index 184d1467..1ce55c1a 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -5806,7 +5806,7 @@ Using the default configuration this function will always return undefined. You Name cowboy_req:cert - Client TLS certificate Description cert(Req :: cowboy_req:req()) -> binary() | undefined Return the peer's TLS certificate. Using the default configuration this function will always return undefined. You need to explicitly configure Cowboy to request the client certificate. To do this you need to set the verify transport option to verify_peer: -{ok, _} = cowboy:start_tls(example, [ {port, 8443}, {cert, "path/to/cert.pem"}, {verify, verify_peer} ], #{ env => #{dispatch => Dispatch} }). +{ok, _} = cowboy:start_tls(example, [ {port, 8443}, {certfile, "path/to/cert.pem"}, {verify, verify_peer} ], #{ env => #{dispatch => Dispatch} }). -- cgit v1.2.3