You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes#1079
Per RFC3161, when the certReq field is set to true, the TSA's
certificate will be present in the timestamp response, and optionally
other certificates may be present. Other public TSAs provide the full
issuing chain in the response.
This PR adds a server configuration flag to include the full chain in
the response if the certReq bit is true.
Signed-off-by: Hayden B <8418760+haydentherapper@users.noreply.github.com>
Copy file name to clipboardExpand all lines: cmd/timestamp-server/app/root.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ func init() {
61
61
rootCmd.PersistentFlags().BoolVar(&httpPingOnly, "http-ping-only", false, "serve only /ping in the http server")
62
62
rootCmd.PersistentFlags().String("timestamp-signer", "memory", "Timestamping authority signer. Valid options include: [kms, tink, memory, file]. Memory and file-based signers should only be used for testing")
63
63
rootCmd.PersistentFlags().String("timestamp-signer-hash", "sha256", "Hash algorithm used by the signer. Must match the hash algorithm specified for a KMS or Tink key. Valid options include: [sha256, sha384, sha512]. Ignored for Memory signer.")
64
+
rootCmd.PersistentFlags().Bool("include-chain-in-response", false, "Whether to include the issuing chain in the timestamp response when certReq is set in the timestamp request. When false, only the leaf certificate is included in the response.")
0 commit comments