From 8459bebceb9533948193774371cbd9fd571b78ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 16 Oct 2019 09:48:31 +0200 Subject: Cowboy 2.7.0 --- docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html') diff --git a/docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html b/docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html index 459137e3..8c383b58 100644 --- a/docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html +++ b/docs/en/cowboy/2.5/manual/cowboy_req.cert/index.html @@ -65,7 +65,7 @@

Name

cowboy_req:cert - Client TLS certificate

Description

-
@@ -73,7 +73,7 @@ http://www.gnu.org/software/src-highlite -->

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:

-
@@ -88,7 +88,7 @@ http://www.gnu.org/software/src-highlite -->

You may also want to customize the verify_fun function. Please consult the ssl application's manual for more details.

TCP connections do not allow a certificate and this function will therefore always return undefined.

The certificate can also be obtained using pattern matching:

-
@@ -107,7 +107,7 @@ http://www.gnu.org/software/src-highlite -->

Examples

Get the client TLS certificate.
-
@@ -150,6 +150,8 @@ http://www.gnu.org/software/src-highlite --> +
  • 2.7
  • +
  • 2.6
  • 2.5
  • -- cgit v1.2.3