Replies: 1 comment 5 replies
-
I've tried your template and seems to work right for me: $ step ca sign --force --set "organizationalUnit=mylab" leaf.csr leaf.crt && step certificate inspect leaf.crt | grep Subject\:
✔ Provisioner: [email protected] (JWK) [kid: nvgnR8wSzpUlrt_tC3mvrhwhBx9Y7T1WL_JjcFVWYBQ]
Please enter the password to decrypt the provisioner key:
✔ CA: https://ca.smallstep.com:9000
✔ Certificate: leaf.crt
Subject: C=US,ST=California,L=San Francisco,STREET=1 The Street St,O=Smallstep,OU=mylab,CN=test.example.com
$ step ca sign --force leaf.csr leaf.crt && step certificate inspect leaf.crt | grep Subject\:
✔ Provisioner: [email protected] (JWK) [kid: nvgnR8wSzpUlrt_tC3mvrhwhBx9Y7T1WL_JjcFVWYBQ]
Please enter the password to decrypt the provisioner key:
✔ CA: https://ca.smallstep.com:9000
✔ Certificate: leaf.crt
Subject: C=US,ST=California,L=San Francisco,STREET=1 The Street St,O=Smallstep,OU=FooBarZar,CN=test.example.com You can also configure a global subject adding the .authority.template like this: {
"root": "...",
"...": "...",
"authority": {
"...": "..."
"template": {
"country": "US",
"organization": "Smallstep",
"organizationalUnit": "Smallstep Eng",
"locality": "San Francisco",
"province": "California",
"streetAddress": "1 The Street St",
"postalCode": "12345"
}
}
} In my example, I had that and the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @ALL,
based on this post I created a template:
The values are predefined in the ca.json:
But I'm not able to change a value by certificate creation:
or
try on both:
I tryed:
How i have to use --set "key=value" the right way?
Thanks Frank
Beta Was this translation helpful? Give feedback.
All reactions