Added cli args to give a different common name to the client certs.

This commit is contained in:
Mariano Uvalle 2021-08-13 11:44:12 -05:00
parent 20806f8408
commit fd53846238

View file

@ -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)