Added cli args to give a different common name to the client certs.
This commit is contained in:
parent
20806f8408
commit
fd53846238
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
|
@ -21,6 +21,7 @@ gencert:
|
||||||
-ca-key=ca-key.pem \
|
-ca-key=ca-key.pem \
|
||||||
-config=certs/ca-config.json \
|
-config=certs/ca-config.json \
|
||||||
-profile=client \
|
-profile=client \
|
||||||
|
-cn="root" \
|
||||||
certs/client-csr.json | cfssljson -bare root-client
|
certs/client-csr.json | cfssljson -bare root-client
|
||||||
|
|
||||||
cfssl gencert \
|
cfssl gencert \
|
||||||
|
|
@ -28,6 +29,7 @@ gencert:
|
||||||
-ca-key=ca-key.pem \
|
-ca-key=ca-key.pem \
|
||||||
-config=certs/ca-config.json \
|
-config=certs/ca-config.json \
|
||||||
-profile=client \
|
-profile=client \
|
||||||
|
-cn="nobody" \
|
||||||
certs/client-csr.json | cfssljson -bare nobody-client
|
certs/client-csr.json | cfssljson -bare nobody-client
|
||||||
|
|
||||||
mv *.pem *.csr $(CONFIG_PATH)
|
mv *.pem *.csr $(CONFIG_PATH)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue