Brad Fitzpatrick 4c52546033 all: update golang.org/x/crypto to v0.0.0-20200622213623-75b288015ac9 il y a 4 ans
..
.gitignore d19327ad09 http2/h2demo: enable HTTP ACME challenges, move from CoreOS to Kubernetes il y a 7 ans
Dockerfile c00fd9afed http2/h2demo: deploy with Go 1.13 il y a 5 ans
Makefile a4d6f7fead http2/h2demo: stop using gitlock, use Go modules il y a 5 ans
README 72f9393749 http2/h2demo: update README il y a 5 ans
deployment-prod.yaml d19327ad09 http2/h2demo: enable HTTP ACME challenges, move from CoreOS to Kubernetes il y a 7 ans
go.mod 4c52546033 all: update golang.org/x/crypto to v0.0.0-20200622213623-75b288015ac9 il y a 4 ans
go.sum 4c52546033 all: update golang.org/x/crypto to v0.0.0-20200622213623-75b288015ac9 il y a 4 ans
h2demo.go 118fecf932 http2/h2demo: update gopher image URL il y a 4 ans
rootCA.key 17e723d022 http2: move github.com/bradfitz/http2 down into a new http2 directory il y a 9 ans
rootCA.pem 17e723d022 http2: move github.com/bradfitz/http2 down into a new http2 directory il y a 9 ans
rootCA.srl 17e723d022 http2: move github.com/bradfitz/http2 down into a new http2 directory il y a 9 ans
server.crt 17e723d022 http2: move github.com/bradfitz/http2 down into a new http2 directory il y a 9 ans
server.key 17e723d022 http2: move github.com/bradfitz/http2 down into a new http2 directory il y a 9 ans
service.yaml 07e8617a6d http2/h2demo: set externalTrafficPolicy to preserve client IPs il y a 6 ans
tmpl.go a8b05e9114 http2/h2demo: remove h2demo build constraint il y a 5 ans

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