Skip to content

Commit

Permalink
Merge pull request #337 from smallstep/carl/raw-subject
Browse files Browse the repository at this point in the history
Add `.Inseucre.CR.RawSubject` to templates doc
  • Loading branch information
tashian committed Jul 10, 2024
2 parents 7b66bea + 3716b18 commit 9f9412f
Showing 1 changed file with 9 additions and 2 deletions.
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

0 comments on commit 9f9412f

Please sign in to comment.