Skip to content

Commit

Permalink
Merge pull request #278 from smallstep/mariano/asn1-bool
Browse files Browse the repository at this point in the history
Add docs for ASN.1 bool option
  • Loading branch information
maraino authored Oct 18, 2023
2 parents f30077f + 02bdb22 commit cbe0f25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion step-ca/templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ asn1Enc "foo"
asn1Enc .Subject.CommonName
```

This function supports the data types described [here](https://github.com/smallstep/crypto/blob/878092791d7e5ef8530dfa949cfe3cde61373d77/x509util/extensions.go#L486):
This function supports the data types described [here](https://github.com/smallstep/crypto/blob/afcd4fc89b2cc36c590909908fa6ac1523fdcc61/x509util/extensions.go#L525):

- **printable**: "printable:abcfoo" (or just "abcfoo")
- **int**: "int:12324"
Expand All @@ -224,6 +224,7 @@ This function supports the data types described [here](https://github.com/smalls
- **numeric**: "numeric:01 02 03345" (multiple space-separated ints)
- **utc**: "utc:2023-03-29T02:03:57Z" or "utc:2023-04-20 15:28:27.909088 -0700 PDT"
- **generalized**: "generalized:2023-03-29T02:03:57Z" or "generalized:2023-04-20 15:28:27.909088 -0700 PDT"
- **bool**: "bool:true" or "bool:false"
- **raw**: a special type that accepts a Base64 string

For more details on ASN.1 types and their meanings, see [ASN.1 Types](https://www.oss.com/asn1/resources/asn1-made-simple/asn1-quick-reference.html#Types).
Expand Down

0 comments on commit cbe0f25

Please sign in to comment.