amélioration commande pour parler HTTPs en ligne de commande

This commit is contained in:
Gregory Colpart 2023-10-11 16:53:39 +02:00
parent 0847506fb4
commit 3cf089bd38

View file

@ -118,7 +118,7 @@ Hello World
On gère le tunnel SSL avec `openssl` puis tout est en clair :
~~~
$ openssl s_client -host www.debian.org -port 443
$ echo -e "GET / HTTP/1.1\r\nHost: www.debian.org\r\n\r\n" | openssl s_client -host www.debian.org -port 443 -quiet -servername www.debian.org
CONNECTED(00000003)
depth=3 C = SE, O = AddTrust AB, OU = AddTrust External TTP Network, CN = AddTrust External CA Root
verify return:1
@ -138,10 +138,9 @@ Certificate chain
Timeout : 300 (sec)
Verify return code: 0 (ok)
---
GET / HTTP/1.0
HTTP/1.1 200 OK
Date: Wed, 05 Oct 2016 02:12:56 GMT
Date: Wed, 11 Oct 2023 14:52:22 GMT
Server: Apache
[...]
~~~