Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .Inseucre.CR.RawSubject to templates doc #337

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions step-ca/templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,21 @@ Here are some common variables available in X.509 certificate templates:
- **.Insecure.CR.EmailAddresses**:
The Email Address SANs provided in the CSR

- **.Insecure.CR.Subject**:
The CSR subject field.

- **.Insecure.CR.Subject.CommonName**:
The Common Name (CN) provided in the CSR's subject
The Common Name (CN) from the CSR subject

- **.Insecure.CR.Subject.ExtraNames**:
The Extra Names provided in the CSR subject.
The Extra Names from the CSR subject.
This is an array of all subject distinguished names (DNs) in the CSR.
Each contains an OID (`type`) and a value (`value`).

- **.Insecure.CR.RawSubject**:
The original subject asn.1 value from the CSR.
Use this if your application requires that the certificate subject and CSR subject match exactly.

- **.Insecure.CR.PublicKey**:
The public key provided in the certificate request.
You can check the request's key type with a conditional, like `{{- if typeIs "*rsa.PublicKey" .Insecure.CR.PublicKey }}`.
Expand Down