Browse Source

Fix a few examples using cert instead of certfile

Loïc Hoguin 6 years ago
parent
commit
3030c2d5c9

+ 2 - 2
doc/src/manual/cowboy.start_tls.asciidoc

@@ -83,7 +83,7 @@ Dispatch = cowboy_router:compile([
 
 
 {ok, _} = cowboy:start_tls(example, [
 {ok, _} = cowboy:start_tls(example, [
     {port, 8443},
     {port, 8443},
-    {cert, "path/to/cert.pem"}
+    {certfile, "path/to/cert.pem"}
 ], #{
 ], #{
     env => #{dispatch => Dispatch}
     env => #{dispatch => Dispatch}
 }).
 }).
@@ -95,7 +95,7 @@ Dispatch = cowboy_router:compile([
 Name = example,
 Name = example,
 
 
 {ok, _} = cowboy:start_tls(Name, [
 {ok, _} = cowboy:start_tls(Name, [
-    {cert, "path/to/cert.pem"}
+    {certfile, "path/to/cert.pem"}
 ], #{
 ], #{
     env => #{dispatch => Dispatch}
     env => #{dispatch => Dispatch}
 }),
 }),

+ 1 - 1
doc/src/manual/cowboy_req.cert.asciidoc

@@ -22,7 +22,7 @@ transport option to `verify_peer`:
 ----
 ----
 {ok, _} = cowboy:start_tls(example, [
 {ok, _} = cowboy:start_tls(example, [
     {port, 8443},
     {port, 8443},
-    {cert, "path/to/cert.pem"},
+    {certfile, "path/to/cert.pem"},
     {verify, verify_peer}
     {verify, verify_peer}
 ], #{
 ], #{
     env => #{dispatch => Dispatch}
     env => #{dispatch => Dispatch}