...

Text file src/github.com/prometheus/alertmanager/examples/ha/tls/Makefile

Documentation: github.com/prometheus/alertmanager/examples/ha/tls

     1# Based on https://github.com/wolfeidau/golang-massl/
     2
     3.PHONY: start
     4start:
     5	goreman start
     6
     7.PHONY: gen-certs
     8gen-certs: certs/ca.pem certs/node1.pem certs/node1-key.pem certs/node2.pem certs/node2-key.pem
     9
    10certs/ca.pem certs/ca-key.pem: certs/ca-csr.json
    11	cd certs; cfssl gencert -initca ca-csr.json | cfssljson -bare ca
    12
    13certs/node1.pem certs/node1-key.pem: certs/ca-config.json certs/ca.pem certs/ca-key.pem certs/node1-csr.json
    14	cd certs; cfssl gencert  \
    15    -ca=ca.pem \
    16    -ca-key=ca-key.pem \
    17    -config=ca-config.json \
    18    -hostname=localhost,127.0.0.1 \
    19    -profile=massl node1-csr.json | cfssljson -bare node1
    20
    21certs/node2.pem certs/node2-key.pem: certs/ca-config.json certs/ca.pem certs/ca-key.pem certs/node2-csr.json
    22	cd certs; cfssl gencert  \
    23    -ca=ca.pem \
    24    -ca-key=ca-key.pem \
    25    -config=ca-config.json \
    26    -hostname=localhost,127.0.0.1 \
    27    -profile=massl node2-csr.json | cfssljson -bare node2

View as plain text