/http123

Comparison between different HTTP versions.

Primary LanguageHTML

Introduction

This repo contains couple of files and configurations which enable the comparison of HTTP1/2 protocols. HTTP/3 is not yet configured. The base server is nginx. As SSL certificate is needed a self-signed one is included.

Generation of a Self Signed Certificate

The repository comes with a self-signed certificate. If you want yours, follow the steps below.

STEP 1: Create the server private key

openssl genrsa -out cert.key 2048

STEP 2: Create the certificate signing request (CSR)

openssl req -new -key cert.key -out cert.csr

STEP 3: Sign the certificate using the private key and CSR

openssl x509 -req -days 3650 -in cert.csr -signkey cert.key -out cert.crt

Starting with HTTP/2

Use the docker compose provided as is. Use https://localhost.

Starting with HTTP/1

In nginx.conf change http2 on to http2 off