https://github.com/schmichael/nomad-tls
Nomad TLS Testing
https://github.com/schmichael/nomad-tls
Last synced: 3 months ago
JSON representation
Nomad TLS Testing
- Host: GitHub
- URL: https://github.com/schmichael/nomad-tls
- Owner: schmichael
- License: unlicense
- Created: 2017-01-31T01:02:39.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-31T01:08:22.000Z (over 9 years ago)
- Last Synced: 2025-03-21T07:46:15.409Z (about 1 year ago)
- Language: HCL
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nomad+Consul+TLS Example
A collection of certificates and configurations for testing TLS with Nomad and
Consul.
* Certificates created with [cfssl](https://cfssl.org/)
* [Nomad's TLS Configuration](https://www.nomadproject.io/docs/agent/encryption.html)
* [Nomad's Consul Configuration](https://www.nomadproject.io/docs/agent/configuration/consul.html)
* [Consul's Encryption Configuration](https://www.consul.io/docs/agent/encryption.html)
## Running
```sh
### In ./consul/ ###
# Start consul server
consul agent -config-file=server.json -advertise=127.0.0.1
# Start consul client
consul agent -config-file=client.json -advertise=127.0.0.1
### In ./nomad/ ###
# Start nomad server
nomad agent -config=server.hcl
# Start nomad client
nomad agent -config=client.hcl
# To use the nomad CLI (note https:// in address)
nomad server-members -address=https://localhost:4646 -ca-path=ca/ca.pem
```
## Layout
```
github.com/schmichael/nomad-tls
│
├── ca
│ ├── ca.csr CA Signing Request
│ ├── ca-key.pem CA Private Key
│ └── ca.pem CA Certifate
├── consul
│ ├── client.json Consul Client Configuration
│ ├── consul.csr Consul Signing Request
│ ├── consul-csr.json Consul Certificate CFSSL Config
│ ├── consul-key.pem Consul Private Key
│ ├── consul.pem Consul Certificate
│ └── server.json Consul Server Configuration
└── nomad
├── client.hcl Nomad Client Configuration
├── nomad.csr Nomad Signing Request
├── nomad-csr.json Nomad Certificate CFSSL Config
├── nomad-key.pem Nomad Private Key
├── nomad.pem Nomad Certificate
└── server.hcl Nomad Server Configuration
```