File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
step-certificates/examples/certificate_authority_single_instance Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 22 "root_ca_name": "example-root-ca",
33 "intermediate_ca_name": "example-intermediate-ca",
44 "ca_org_name": "Example CA Org",
5+ "ca_orgunit_name": "Example OU CA Org",
56 "ca_country_name": "US",
67 "ca_locality_name": "Minnesota",
78 "ca_dns_names": [
1112 ],
1213 "jwk_provisioner_name": "admin",
1314 "ca_url": "mysteprelease-step-certificates.default.svc.cluster.local"
14- }
15+ }
Original file line number Diff line number Diff line change 33ROOT_CA_NAME=` jq -r ' .root_ca_name' ca.config`
44INTERMEDIATE_CA_NAME=` jq -r ' .intermediate_ca_name' ca.config`
55CA_ORG_NAME=` jq -r ' .ca_org_name' ca.config`
6+ CA_ORGUNIT_NAME=` jq -r ' .ca_orgunit_name' ca.config`
67CA_COUNTRY_NAME=` jq -r ' .ca_country_name' ca.config`
78CA_LOCALITY_NAME=` jq -r ' .ca_locality_name' ca.config`
89CA_DNS_NAMES=` jq -c .ca_dns_names ca.config`
910CA_URL=` jq -r .ca_url ca.config`
1011JWK_PROVISIONER_NAME=` jq -r .jwk_provisioner_name ca.config`
1112
12- export ROOT_CA_NAME INTERMEDIATE_CA_NAME CA_ORG_NAME CA_COUNTRY_NAME CA_LOCALITY_NAME CA_DNS_NAMES CA_URL JWK_PROVISIONER_NAME
13+ export ROOT_CA_NAME INTERMEDIATE_CA_NAME CA_ORG_NAME CA_ORGUNIT_NAME CA_COUNTRY_NAME CA_LOCALITY_NAME CA_DNS_NAMES CA_URL JWK_PROVISIONER_NAME
1314
1415# Write Out Root and Intermediate Certificate Templates
1516cat root-tls.json.tpl | envsubst | tee root-tls.json
Original file line number Diff line number Diff line change 11{
22 " subject" : {
33 " commonName" : " ${INTERMEDIATE_CA_NAME}" ,
4- " organizationName" : " ${CA_ORG_NAME}" ,
5- " countryName" : " ${CA_COUNTRY_NAME}" ,
6- " localityName" : " ${CA_LOCALITY_NAME}"
4+ " organization" : " ${CA_ORG_NAME}" ,
5+ " organizationalUnit" : " ${CA_ORGUNIT_NAME}" ,
6+ " country" : " ${CA_COUNTRY_NAME}" ,
7+ " locality" : " ${CA_LOCALITY_NAME}"
78 } ,
89 "keyUsage": [ "certSign", "crlSign" ],
910 "basicConstraints": {
1011 " isCA" : true ,
1112 " maxPathLen" : 1
1213 }
13- }
14+ }
Original file line number Diff line number Diff line change 11{
22 " subject" : {
33 " commonName" : " ${ROOT_CA_NAME}" ,
4- " organizationName" : " ${CA_ORG_NAME}" ,
5- " countryName" : " ${CA_COUNTRY_NAME}" ,
6- " localityName" : " ${CA_LOCALITY_NAME}"
4+ " organization" : " ${CA_ORG_NAME}" ,
5+ " organizationalUnit" : " ${CA_ORGUNIT_NAME}" ,
6+ " country" : " ${CA_COUNTRY_NAME}" ,
7+ " locality" : " ${CA_LOCALITY_NAME}"
78 } ,
89 "keyUsage": [ "certSign", "crlSign" ],
910 "basicConstraints": {
1011 " isCA" : true ,
1112 " maxPathLen" : 1
1213 }
13- }
14+ }
You can’t perform that action at this time.
0 commit comments