Aller au contenu principal

RFC 2818 - HTTP sur TLS (HTTPS) - Référence rapide (Quick Reference)

Référence rapide (Quick Reference)​

HTTPS vs HTTP​

FonctionnalitéHTTPHTTPS
Protocolehttp://https://
Port80443
Chiffrement❌ Texte clair✅ Chiffré TLS
Intégrité❌ Aucune protection✅ Protection MAC
Authentification❌ Pas d'auth serveur✅ Auth par certificat
Confidentialité❌ Peut être intercepté✅ Transmission chiffrée

Aperçu de la négociation TLS (TLS Handshake Overview)​

Client                           Serveur
| |
|--- ClientHello --------------->|
| |
|<-- ServerHello, Certificate ---|
|<-- ServerHelloDone ------------|
| |
|--- ClientKeyExchange --------->|
|--- ChangeCipherSpec ---------->|
|--- Finished ------------------>|
| |
|<-- ChangeCipherSpec -----------|
|<-- Finished -------------------|
| |
|=== Canal chiffré ==============|
| |
|--- Requête HTTP chiffrée ----->|
|<-- Réponse HTTP chiffrée ------|

Outils courants (Common Tools)​

# OpenSSL afficher le certificat
openssl s_client -connect www.example.com:443 -showcerts

# Tester la version TLS
openssl s_client -connect www.example.com:443 -tls1_2

# Afficher les détails du certificat
echo | openssl s_client -connect www.example.com:443 2>/dev/null | \
openssl x509 -noout -text

# cURL utiliser HTTPS
curl -v https://www.example.com