-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds cert-utility templates and documentation. (#889)
* feat: adds cert templates. Signed-off-by: ianhundere <[email protected]> * feat: splits/adds cert-utility to pgk/cmd. Signed-off-by: ianhundere <[email protected]> * fix: enables timestamping / improves validation / includes leaf wording. Signed-off-by: ianhundere <[email protected]> * feat: adds optional intermediate flag(s). Signed-off-by: ianhundere <[email protected]> * fix: changes cloudkms flag to gcpkms and makes azure/gcp flags more descriptive. Signed-off-by: ianhundere <[email protected]> * fix: makes env vars for azure tenant-id and gcp credentials file more consistent w/ flags. Signed-off-by: ianhundere <[email protected]> * fix: changes kms-region flag to aws-region and gcpkms-credentials-file flag to gcp-credentials-file. Signed-off-by: ianhundere <[email protected]> * fix: improves kms key validation across providers. Signed-off-by: ianhundere <[email protected]> * feat: adds sigstore/sigstore for kms and hashivault support. Signed-off-by: ianhundere <[email protected]> * docs: adds readme for tsa-certificate-maker. Signed-off-by: ianhundere <[email protected]> * chore: adds tsa-cert-maker to make file. Signed-off-by: ianhundere <[email protected]> * refactor: adds bobcallaway's fb. Signed-off-by: ianhundere <[email protected]> * refactor: for usage errors, show help / for operational errors show json error. Signed-off-by: ianhundere <[email protected]> * chore: groups flags, adds validation for root-id, removes signer wrapper, and other PR fb. Signed-off-by: ianhundere <[email protected]> * refactor: adds certLife to replace before/after timestamps. Signed-off-by: ianhundere <[email protected]> * feat: adds templating, positional arg for common name and other improvements. Signed-off-by: ianhundere <[email protected]> * docs: updates docs. Signed-off-by: ianhundere <[email protected]> * chore: reverts makefile and deletes tsa certmaker. Signed-off-by: ianhundere <[email protected]> * chore: adds fb. Signed-off-by: ianhundere <[email protected]> * chore: adds fb. Signed-off-by: ianhundere <[email protected]> --------- Signed-off-by: ianhundere <[email protected]>
- Loading branch information
1 parent
7bc1970
commit 40f1f8f
Showing
7 changed files
with
99 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Certificate Maker | ||
|
||
_Note: Certificate Maker can be [found in the Fulcio repository](https://github.com/sigstore/fulcio/tree/main/cmd/certificate_maker). Please refer to its [respective documentation](https://github.com/sigstore/fulcio/blob/main/docs/certificate-maker.md) to learn more._ | ||
|
||
The TSA-specific certificate templates located in the `pkg/certmaker/templates` can be used with Certificate Maker. | ||
|
||
## Templates | ||
|
||
These [TSA-specific certificate templates](pkg/certmaker/templates) are specifically configured for Timestamp Authority certificates with appropriate extensions and constraints: | ||
|
||
- `root-template.json`: Template for root CA certificates | ||
- `intermediate-template.json`: Template for intermediate CA certificates | ||
- `leaf-template.json`: Template for leaf (TSA) certificates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"subject": { | ||
"country": [ | ||
"" | ||
], | ||
"organization": [ | ||
"" | ||
], | ||
"organizationalUnit": [ | ||
"" | ||
], | ||
"commonName": "{{ .Subject.CommonName }}" | ||
}, | ||
"keyUsage": [ | ||
"certSign", | ||
"crlSign" | ||
], | ||
"basicConstraints": { | ||
"isCA": true, | ||
"maxPathLen": 0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"subject": { | ||
"country": [ | ||
"" | ||
], | ||
"organization": [ | ||
"" | ||
], | ||
"organizationalUnit": [ | ||
"" | ||
], | ||
"commonName": "{{ .Subject.CommonName }}" | ||
}, | ||
"keyUsage": [ | ||
"digitalSignature" | ||
], | ||
"extensions": [ | ||
{ | ||
"id": "2.5.29.37", | ||
"critical": true, | ||
"value": {{ asn1Seq (asn1Enc "oid:1.3.6.1.5.5.7.3.8") | toJson }} | ||
} | ||
], | ||
"basicConstraints": { | ||
"isCA": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"subject": { | ||
"country": [ | ||
"" | ||
], | ||
"organization": [ | ||
"" | ||
], | ||
"organizationalUnit": [ | ||
"" | ||
], | ||
"commonName": "{{ .Subject.CommonName }}" | ||
}, | ||
"basicConstraints": { | ||
"isCA": true, | ||
"maxPathLen": 1 | ||
}, | ||
"keyUsage": [ | ||
"certSign", | ||
"crlSign" | ||
] | ||
} |