Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests: Replace RSA cert by ECDSA cert #170

Merged
merged 2 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: Setup dependencies
run: |
sudo add-apt-repository ppa:dqlite/master -y
sudo add-apt-repository ppa:dqlite/dev -y
sudo apt update
sudo apt install -y golint libsqlite3-dev libuv1-dev liblz4-dev libraft-dev libdqlite-dev
go get github.com/tsenart/deadcode
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Setup dependencies
run: |
sudo add-apt-repository ppa:dqlite/master -y
sudo add-apt-repository ppa:dqlite/dev -y
sudo apt update
sudo apt install -y libsqlite3-dev libuv1-dev liblz4-dev libraft-dev libdqlite-dev

Expand Down
37 changes: 9 additions & 28 deletions app/testdata/cluster.crt
Original file line number Diff line number Diff line change
@@ -1,30 +1,11 @@
-----BEGIN CERTIFICATE-----
MIIFKjCCAxKgAwIBAgIUNdX/dAzmhTWG9oMmYrui8+uS2Z8wDQYJKoZIhvcNAQEL
BQAwFjEUMBIGA1UEAwwLZHFsaXRlLXRlc3QwHhcNMjAwNTExMTUwMjA2WhcNMzAw
NTA5MTUwMjA2WjAWMRQwEgYDVQQDDAtkcWxpdGUtdGVzdDCCAiIwDQYJKoZIhvcN
AQEBBQADggIPADCCAgoCggIBAM8xxnuDhYMdSQfypdLpGHP2k8ZIF0UzrdL4TJrB
LxzabdfGh/fhFP4ilHqYy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aR//CLPFMA5YuGSBQ9UTTRav
p4Liq8PVLoNnx6poJi7sG7SGyDkHoZSX
-----END PRIVATE KEY-----
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIBxSTUI5Xk1nsd/yfovKZ0cNdPGEcCTANDs0epC/Vo5foAoGCCqGSM49
AwEHoUQDQgAEeEP+3xYVKWqLTiXZx7yXhmS1WMwwLBnl50TACMmXZA69pbqqQ/XA
UBoT0s4dMNA0Qm/8GwDRcgcpekbt9MchJg==
-----END EC PRIVATE KEY-----