From 8de14002e4631e73379f51201aeb3292f29b3311 Mon Sep 17 00:00:00 2001 From: Alessandro Date: Mon, 19 Aug 2024 12:09:41 +0200 Subject: [PATCH] regenerated outdated certificates for TLS testing in remotedb --- remotedb/remotedb_test.go | 4 +++- remotedb/test.crt | 46 +++++++++++++++++------------------ remotedb/test.key | 50 +++++++++++++++++++-------------------- 3 files changed, 51 insertions(+), 49 deletions(-) diff --git a/remotedb/remotedb_test.go b/remotedb/remotedb_test.go index dd72766..eafc138 100644 --- a/remotedb/remotedb_test.go +++ b/remotedb/remotedb_test.go @@ -29,7 +29,9 @@ func TestRemoteDB(t *testing.T) { client, err := remotedb.NewRemoteDB(ln.Addr().String(), cert) require.Nil(t, err, "expecting a successful client creation") dbName := "test-remote-db" - require.Nil(t, client.InitRemote(&remotedb.Init{Name: dbName, Type: "goleveldb"})) + + err = client.InitRemote(&remotedb.Init{Name: dbName, Type: "goleveldb"}) + require.Nil(t, err) defer os.RemoveAll(dbName + ".db") k1 := []byte("key-1") diff --git a/remotedb/test.crt b/remotedb/test.crt index db4731a..49a1c19 100644 --- a/remotedb/test.crt +++ b/remotedb/test.crt @@ -1,25 +1,25 @@ -----BEGIN CERTIFICATE----- -MIIEOTCCAiGgAwIBAgIRAKFDMVd84l9c+H7Igu+IeyAwDQYJKoZIhvcNAQELBQAw -FzEVMBMGA1UEAxMMY29tZXRiZnQuY29tMB4XDTIzMDExMjIwNDgxMVoXDTI0MDcx -MjIwNTgwN1owEzERMA8GA1UEAxMIcmVtb3RlZGIwggEiMA0GCSqGSIb3DQEBAQUA -A4IBDwAwggEKAoIBAQCzY2p/uGtME0w4suqYdMtXQU81ZX7A7ko6mP0N3ZKuji3R -XY9SXGKeJW46JbNIgbs5B8CHI4OiYdarZKF6gBs5cPAnKbsPW5MnNxWNXStm5c/9 -rhoDi9dUUEpf8JFNb+IqJPsW7iURI8exqQr2Pb1oZPPk2GhgYfauu1lqyDAf88T2 -GvdGYsmR8mNYW6NfrL4zqGeGnuq6sW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7DfdvfklxaoBD +w4pjncJt9uZPxeZopOxiP/3NOtXVRU+sMG6ogiKpKEejnxMbjpBsvEz8NhjAsnXX +n38JrdQzNq2xTCJHg0TxsxGTVrkGQzA5MyGODrf4t3sU+Vru+WaXkVpiPBBnCeaK +NADoGkRHsMdg66EFvYimaJd2ysOT8hUPzEQEeO4IhQ+FPs/25m400l2iUdsh93x6 ++qMKNAyexFwlDda51qvW5YvjPeTXo8Xc4uNGLwB+31/zIeR3gdSWW8IaYvOAv+5n +2DI9+MI4nzalN/pmQjCUDsIdMoQNRD9nHREJ8lTI9ZA3RU9+/+xCrUxzd8mII1eL +nkiPk9nzdcu7B7dIpIefQOhmEd3VKLtjGVrhYQ== -----END CERTIFICATE----- diff --git a/remotedb/test.key b/remotedb/test.key index 4eb99d1..6b30ded 100644 --- a/remotedb/test.key +++ b/remotedb/test.key @@ -1,27 +1,27 @@ -----BEGIN RSA PRIVATE KEY----- -MIIEpAIBAAKCAQEAs2Nqf7hrTBNMOLLqmHTLV0FPNWV+wO5KOpj9Dd2Sro4t0V2P -UlxiniVuOiWzSIG7OQfAhyODomHWq2SheoAbOXDwJym7D1uTJzcVjV0rZuXP/a4a -A4vXVFBKX/CRTW/iKiT7Fu4lESPHsakK9j29aGTz5NhoYGH2rrtZasgwH/PE9hr3 -RmLJkfJjWFujX6y+M6hnhp7qurFsSh0FrofeYKUmJ8Tc5lVSiLrbTqFAtRSuilPr -3W1cZG3mCiCvWv8iTsqes02iGalGugOR4VVh3RunvUWNtLLLGpkj1CfpJph66Xgk -YhO5/JZNBvx88zuc50AffUZ84o32mqyg2Mt2tQIDAQABAoIBACxgJ3Q41rIXA//y -on3cRoDrMwDufpCTYeFk/xRy/1oW6dak4lNpbyvX7pCLyvHgxcOx2zqS2nlM4qG7 -XwbCsflfqsjFVfTSnnBQ/A/gQGBP8Ue7zcuayEWfJwbcp9UUHEp4o3RkrN60jy2v -t3p6g2RTtNGjhw5wrWlEBzaXFvCQHsUbDAoTniEp51Rfw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