mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Update ssl_hello_world example certificate
This commit is contained in:
parent
a0314a6dff
commit
1c464083fa
7 changed files with 54 additions and 54 deletions
|
@ -9,8 +9,9 @@ $ make run
|
|||
|
||||
Then point your browser to https://localhost:8443
|
||||
|
||||
You will need to temporarily trust the root certificate authority,
|
||||
which can also be found in `priv/ssl/cowboy-ca.crt`.
|
||||
You will be greeted by a security message. You can ask for more
|
||||
information and ultimately accept to access localhost. This is
|
||||
due to the example using a self-signed certificate.
|
||||
|
||||
Recent browsers will communicate using HTTP/2. Older browsers
|
||||
will use HTTP/1.1.
|
||||
|
@ -19,7 +20,7 @@ will use HTTP/1.1.
|
|||
|
||||
[source,bash]
|
||||
----
|
||||
$ curl --cacert priv/ssl/cowboy-ca.crt -i https://localhost:8443
|
||||
$ curl -k -i https://localhost:8443
|
||||
HTTP/1.1 200 OK
|
||||
connection: keep-alive
|
||||
server: Cowboy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue