Skip to content

Commit 11f761d

Browse files
committed
Add a valid id for fake CT log.
1 parent 5666b5a commit 11f761d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/ct-test-srv/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ func handler(w http.ResponseWriter, r *http.Request) {
3939
w.WriteHeader(http.StatusOK)
4040
w.Write([]byte(`{
4141
"sct_version": 0,
42-
"id": "",
42+
// Sha256 of a random EC key. Generate your own with:
43+
// openssl ecparam -name prime256v1 -genkey -outform der | openssl sha256 -binary | base64
44+
"id": "8fjM8cvLPOhzCFwI62IYJhjkOcvWFLx1dMJbs0uhxJU=",
4345
"timestamp": 1442400000,
4446
"extensions": "",
4547
"signature": "BAMARzBFAiBB5wKED8KqKhADT37n0y28fZIPiGbCfZRVKq0wNo0hrwIhAOIa2tPBF/rB1y30Y/ROh4LBmJ0mItAbTWy8XZKh7Wcp"

0 commit comments

Comments
 (0)