|
67 | 67 | origin = flag.String("origin", "", "Origin of the log, for checkpoints. This MUST match the log's submission prefix as per https://c2sp.org/static-ct-api.") |
68 | 68 | pathPrefix = flag.String("path_prefix", "", "Prefix to use on endpoints URL paths: HOST:PATH_PREFIX/ct/v1/ENDPOINT.") |
69 | 69 | rootsPemFile = flag.String("roots_pem_file", "", "Path to the file containing root certificates that are acceptable to the log. The certs are served through get-roots endpoint.") |
| 70 | + rootsRemoteFetchURL = flag.String("roots_remote_fetch_url", "https://ccadb.my.salesforce-sites.com/ccadb/RootCACertificatesIncludedByRSReportCSV", "WIP DO NOT USE - URL to fetch trusted roots from.") |
| 71 | + rootsRemoteFetchInterval = flag.Duration("roots_remote_fetch_interval", time.Duration(0), "WIP DO NOT USE - Interval between two fetches from roots_fetch_url.") |
70 | 72 | rejectExpired = flag.Bool("reject_expired", false, "If true then the certificate validity period will be checked against the current time during the validation of submissions. This will cause expired certificates to be rejected.") |
71 | 73 | rejectUnexpired = flag.Bool("reject_unexpired", false, "If true then TesseraCT rejects certificates that are either currently valid or not yet valid.") |
72 | 74 | extKeyUsages = flag.String("ext_key_usages", "", "If set, will restrict the set of such usages that the server will accept. By default all are accepted. The values specified must be ones known to the x509 package.") |
@@ -106,14 +108,16 @@ func main() { |
106 | 108 | signer := signerFromFlags() |
107 | 109 |
|
108 | 110 | chainValidationConfig := tesseract.ChainValidationConfig{ |
109 | | - RootsPEMFile: *rootsPemFile, |
110 | | - RejectExpired: *rejectExpired, |
111 | | - RejectUnexpired: *rejectUnexpired, |
112 | | - ExtKeyUsages: *extKeyUsages, |
113 | | - RejectExtensions: *rejectExtensions, |
114 | | - NotAfterStart: notAfterStart.t, |
115 | | - NotAfterLimit: notAfterLimit.t, |
116 | | - AcceptSHA1: *acceptSHA1, |
| 111 | + RootsPEMFile: *rootsPemFile, |
| 112 | + RootsRemoteFetchURL: *rootsRemoteFetchURL, |
| 113 | + RootsRemoteFetchInterval: *rootsRemoteFetchInterval, |
| 114 | + RejectExpired: *rejectExpired, |
| 115 | + RejectUnexpired: *rejectUnexpired, |
| 116 | + ExtKeyUsages: *extKeyUsages, |
| 117 | + RejectExtensions: *rejectExtensions, |
| 118 | + NotAfterStart: notAfterStart.t, |
| 119 | + NotAfterLimit: notAfterLimit.t, |
| 120 | + AcceptSHA1: *acceptSHA1, |
117 | 121 | } |
118 | 122 | if *acceptSHA1 { |
119 | 123 | klog.Info(`**** WARNING **** This server will accept chains signed |
|
0 commit comments