Version: v0.0.0-...-81244fa Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2018 License: MPL-2.0 Imports: 4 Imported by: 0


This demo application does the following:

  • Issues a new certificate from Vault for Common Name foo.service.consul.
  • Configures go-chi HTTP router to return "welcome" from /
  • Starts HTTP listener on

This app is also available as a container on Dockerhub. Run it as follows:

$ docker run --rm -d \
    -e VAULT_TOKEN=<your vault token here> \
    -e VAULT_ADDR=https://<your-vault-address-here>:8200 \

Then try it out:

$ curl -vvvk https://localhost:18080
* SSL connection using TLSv1.2 / ECDHE-ECDSA-AES128-GCM-SHA256
* Server certificate:
*  subject: CN=foo.service.consul
* Using HTTP2, server supports multi-use

< HTTP/2 200
< content-type: text/plain; charset=utf-8
< content-length: 7
< date: Sat, 10 Feb 2018 22:36:59 GMT
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact


The Go Gopher

There is no documentation for this package.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL