From c210c80e80231143f6eaa0f39e8e1d3303983791 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 2 Nov 2020 23:28:58 +0100 Subject: added start on stfe client ChecksumV1 entries can be submitted using client-side ed25519 signatures. The resulting SignedDebugInfoV1 is then verified using the log's announced signature scheme and public key (currently only ed25519). --- server/descriptor/.descriptor.go.swp | Bin 0 -> 12288 bytes server/descriptor/stfe.json | 4 ++-- server/testdata/chain/ee.csr | 7 +++++++ server/testdata/chain/ee.key | 3 +++ server/testdata/chain/ee.pem | 9 +++++++++ server/testdata/chain/rgdd-root.srl | 2 +- 6 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 server/descriptor/.descriptor.go.swp create mode 100644 server/testdata/chain/ee.csr create mode 100644 server/testdata/chain/ee.key create mode 100644 server/testdata/chain/ee.pem (limited to 'server') diff --git a/server/descriptor/.descriptor.go.swp b/server/descriptor/.descriptor.go.swp new file mode 100644 index 0000000..e12d5cd Binary files /dev/null and b/server/descriptor/.descriptor.go.swp differ diff --git a/server/descriptor/stfe.json b/server/descriptor/stfe.json index 69e84a0..d987c47 100644 --- a/server/descriptor/stfe.json +++ b/server/descriptor/stfe.json @@ -5,11 +5,11 @@ "logs": [ { "max_chain": 3, - "log_id": "B9oCJk4XIOMXba8dBM5yUj+NLtqTE6xHwbvR9dYkHPM=", + "id": "B9oCJk4XIOMXba8dBM5yUj+NLtqTE6xHwbvR9dYkHPM=", "signature_schemes": [ 2055 ], - "base_url": "example.com/st/v1", + "base_url": "localhost:6965/st/v1", "signature_scheme": 2055, "public_key": "MCowBQYDK2VwAyEAqM4b/SHOCRId9xgiCPn8D8r6+Nrk9JTZZqW6vj7TGa0=" } diff --git a/server/testdata/chain/ee.csr b/server/testdata/chain/ee.csr new file mode 100644 index 0000000..d3b6059 --- /dev/null +++ b/server/testdata/chain/ee.csr @@ -0,0 +1,7 @@ +-----BEGIN CERTIFICATE REQUEST----- +MIHEMHgCAQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAf +BgNVBAoMGEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAqMAUGAytlcAMhAN2ydopX +PU0rUaZg/tLvkc/5rKf5YcE1KU8mvMKRTTS1oAAwBQYDK2VwA0EAW3tF+3WqTY90 +0vVJCKEEokWfGFJGXwelJu0qMOIiZ3i5tVJGNtnzamALIEm5MwZX9XxFJnDUZ/G1 +OS8P7r2wBg== +-----END CERTIFICATE REQUEST----- diff --git a/server/testdata/chain/ee.key b/server/testdata/chain/ee.key new file mode 100644 index 0000000..e0d4e18 --- /dev/null +++ b/server/testdata/chain/ee.key @@ -0,0 +1,3 @@ +-----BEGIN PRIVATE KEY----- +MC4CAQAwBQYDK2VwBCIEICoNwxwXHgfQsmCP3bcmyCr2qPnk4s602txur6Fv18+b +-----END PRIVATE KEY----- diff --git a/server/testdata/chain/ee.pem b/server/testdata/chain/ee.pem new file mode 100644 index 0000000..a3de1db --- /dev/null +++ b/server/testdata/chain/ee.pem @@ -0,0 +1,9 @@ +-----BEGIN CERTIFICATE----- +MIIBRDCB9wIUDVhYPJbWJnID0hWjpfR51SpAM/owBQYDK2VwMEUxCzAJBgNVBAYT +AkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRn +aXRzIFB0eSBMdGQwHhcNMjAxMTAyMTkwMzMzWhcNMjMwODIzMTkwMzMzWjBFMQsw +CQYDVQQGEwJBVTETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJu +ZXQgV2lkZ2l0cyBQdHkgTHRkMCowBQYDK2VwAyEA3bJ2ilc9TStRpmD+0u+Rz/ms +p/lhwTUpTya8wpFNNLUwBQYDK2VwA0EARtet9+teezrMe6ACgIvTHgFrIsnyNr+N +nu6m5oNnGKzmSnyGdrPGY8RlaEBwEn/6tb/ahI6+VLDaDEJjW8BVAA== +-----END CERTIFICATE----- diff --git a/server/testdata/chain/rgdd-root.srl b/server/testdata/chain/rgdd-root.srl index dac138f..a0a5632 100644 --- a/server/testdata/chain/rgdd-root.srl +++ b/server/testdata/chain/rgdd-root.srl @@ -1 +1 @@ -0D58583C96D6267203D215A3A5F479D52A4033F9 +0D58583C96D6267203D215A3A5F479D52A4033FA -- cgit v1.2.3