pokemon-go-trade / vendor / golang.org / x / net / http2 / h2demo /
Simon Lindgren authored on 12 Feb 2021
..
.gitignore first commit 3 years ago
Dockerfile first commit 3 years ago
Makefile first commit 3 years ago
README first commit 3 years ago
deployment-prod.yaml first commit 3 years ago
go.mod first commit 3 years ago
go.sum first commit 3 years ago
h2demo.go first commit 3 years ago
rootCA.key first commit 3 years ago
rootCA.pem first commit 3 years ago
rootCA.srl first commit 3 years ago
server.crt first commit 3 years ago
server.key first commit 3 years ago
service.yaml first commit 3 years ago
tmpl.go first commit 3 years ago
README
This is a demo webserver that shows off Go's HTTP/2 support.

It runs at https://http2.golang.org/ so people can hit our
implementation with their HTTP/2 clients, etc. We intentionally do not
run it behind any other HTTP implementation so clients (including
people demonstrating attacks, etc) can hit our server directly. It
just runs behind a TCP load balancer.

When running locally, you'll need to click through TLS cert warnings.
The dev cert was initially made like:

Make CA:
$ openssl genrsa -out rootCA.key 2048
$ openssl req -x509 -new -nodes -key rootCA.key -days 1024 -out rootCA.pem

Make cert:
$ openssl genrsa -out server.key 2048
$ openssl req -new -key server.key -out server.csr
$ openssl x509 -req -in server.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out server.crt -days 500