Skip to content

Commit

Permalink
trust digicert for wacz timestamping (fixes #50)
Browse files Browse the repository at this point in the history
  • Loading branch information
makew0rld committed Jun 28, 2024
1 parent db43605 commit 27a8be9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions preprocessor/wacz/wacz.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,17 @@ type WaczFileData struct {
UserAgent string
}

// SHA-256 fingerprints of CA certs for Timestamp Authorities we trust
var trustedTimestampFingerprints = []string{
// freetsa.org Root CA (self-signed)
// Need to trust this because Authsign uses it
"a6379e7cecc05faa3cbf076013d745e327bbbaa38c0b9af22469d4701d18aabc",

// DigiCertTrustedG4RSA4096SHA256TimeStampingCA.cer
// DigiCert's CA for timestamping operations
// Authsign will use this in the future:
// https://github.com/starlinglab/integrity-v2/issues/50
"281734d4592d1291d27190709cb510b07e22c405d5e0d6119b70e73589f98acf",
}

// findUserAgent finds the user agent string in the data.warc.gz file.
Expand Down

0 comments on commit 27a8be9

Please sign in to comment.