mirror of https://github.com/dexidp/dex.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
542 B
25 lines
542 B
.PHONY: cfssl ca req clean |
|
|
|
CFSSL = @env PATH=$(GOPATH)/bin:$(PATH) cfssl |
|
JSON = env PATH=$(GOPATH)/bin:$(PATH) cfssljson |
|
|
|
all: cfssl ca req |
|
|
|
cfssl: |
|
go get -u -tags nopkcs11 github.com/cloudflare/cfssl/cmd/cfssl |
|
go get -u github.com/cloudflare/cfssl/cmd/cfssljson |
|
|
|
ca: |
|
mkdir -p certs |
|
$(CFSSL) gencert -initca config/ca-csr.json | $(JSON) -bare certs/ca |
|
|
|
req: |
|
$(CFSSL) gencert \ |
|
-ca certs/ca.pem \ |
|
-ca-key certs/ca-key.pem \ |
|
-config config/ca-config.json \ |
|
config/req-csr.json | $(JSON) -bare certs/dex |
|
|
|
clean: |
|
rm -rf certs |
|
|
|
|