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

Test secure connect #116

Merged
merged 7 commits into from
Jan 1, 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 Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test: build-native
$(GORUN) utils/ci.go test --integration

travis: build-native
$(GORUN) utils/ci.go test -coverage $$TEST_PACKAGES --integration
$(GORUN) utils/ci.go test -coverage $$TEST_PACKAGES --integration -v

# -------------------------------------
# release_pattern=current
Expand Down
6 changes: 3 additions & 3 deletions godbledger/cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ var log = logrus.WithField("prefix", "Config")
type LedgerConfig struct {
Host string // Host defines the address that the RPC will be opened on. Combined with RPC Port
RPCPort string // RPCPort defines the port that the server will listen for transactions on
CACert string // CACertFlag defines a flag for the server's Certificate Authority certificate.
Cert string // CertFlag defines a flag for the server's TLS certificate.
Key string // KeyFlag defines a flag for the server's TLS key.
CACert string // CACertFlag defines a flag for the server's Certificate Authority certificate (Public Key of Authority that signs clients Public Keys).
Cert string // CertFlag defines a flag for the server's TLS certificate (Servers Public Key to broadcast).
Key string // KeyFlag defines a flag for the server's TLS key (Servers Private Key).
DataDirectory string // DataDirectory defines the host systems folder directory holding the database and config files
LogVerbosity string // LogVerbosity defines the logging level {debug, info, warn, error, fatal, panic}
ConfigFile string // Location of the TOML config file, including directory path
Expand Down
36 changes: 36 additions & 0 deletions tests/certs/ca-cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
-----BEGIN CERTIFICATE-----
MIIGNzCCBB+gAwIBAgIUfrvl32eGR2WkXww2GY4MGhN6dg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
1 change: 1 addition & 0 deletions tests/certs/ca-cert.srl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4A706BC42E0D6EF165503659AF53895286D91463
52 changes: 52 additions & 0 deletions tests/certs/ca-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJRAIBADANBgkqhkiG9w0BAQEFAASCCS4wggkqAgEAAoICAQDqyRwWBIGAhDET
ugq/kY6jUjkuJ7v+nlV3lVqGshhr/P10erI0gA2X0Wcuig1b6xYbwvaHad8sgFZV
WnMyvMck7I3+COmvLYTX+o+N3YXy9qp86ThNzjcHoYjlXsdkwh7Bh5s+ooC/Eky+
gsBNqgJy7hMwoWb2SOPq3q7/PHOXDyjl6eb+UDVcSeVWPe40jWi980DmA0fB+av/
6xIA8flYNAc1WGLBxaVzQiI7fkD3ijIVvkdHt6HNPUNpqG/mZLfxoYoQitpr/N2y
Z3MhvZ84ifF+nceHAf3kmQj8KkoRWa6n9QVTIKhKwt2BTwoiYf738eb+tYtgqaeS
qFbTkkXCHdsZhuGsIBt/AoETHnIk+qnG645ZFbd4O7D3DCFUf5DzjLcuOSPZnT3n
KOYA+qzbgnNAB58/muE3/W/ptLEbkiNyM2EM5G37a2/fyjlNJ1+ie6pEjTA99qBP
2EX2qho4KJ4BxIdtzdVWDQPhXydfl4Wn8WH0SsQ86z/oJNLt7S7spPgK4rMNGrST
P4viJ9lHJsdy9afIddpZ4vcDgMJZwS9jdMbGRnm1k7qnmVm8xi0JPXzsw89rJryp
5nNhEERNjX9H0QSQ4qQXX5bkQ7xcP74o/EX2EmxZ1Ep+j+Jjyv5+UmN9ma5zJwMH
hxeLAixd60OCZYOpC3zOOESRKatnswIDAQABAoICAQDCah2zra9+t/fbmeZkkydF
3kQzD/v/7yRejXIUr0zBvxAxb5g5GQAoguGqC+7b+mKoQlzZ7LU8qFjU/Lz/eop8
7NT3UnIO+OZT4csVciYE9nReUtCovOWckApHxJ/fs068eon256Eslv6tkp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G0U+stAW0vFd05ymd6GUkqa2EfjfqNjrA4wmx
oFz+QSlU8ts0rJ1XcRFC7gj9M6ysQQ57a0bfQsRaJPp4+dqOVgc6y84UnaWOwYM5
l1CgyLnh6RDpG9OQ6stmUcdlnkDd7vzDUjksyi8tPWfYfT+qKsAkgbTasmP5xtSK
5uVqWlF9Mqt5rOXH2CPPE35NjpJN3H4U
-----END PRIVATE KEY-----
34 changes: 34 additions & 0 deletions tests/certs/client-cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-----BEGIN CERTIFICATE-----
MIIF5DCCA8ygAwIBAgIUSnBrxC4NbvFlUDZZr1OJUobZFGMwDQYJKoZIhvcNAQEL
BQAwgaoxCzAJBgNVBAYTAkFVMREwDwYDVQQIDAhWaWN0b3JpYTESMBAGA1UEBwwJ
TWVsYm91cm5lMRgwFgYDVQQKDA9EYXJjeSBGaW5hbmNpYWwxEzARBgNVBAsMCkdv
REJMZWRnZXIxHTAbBgNVBAMMFCouZGFyY3lmaW5hbmNpYWwuY29tMSYwJAYJKoZI
hvcNAQkBFhdzZWFuQGRhcmN5ZmluYW5jaWFsLmNvbTAeFw0yMTAxMDEwODExMTZa
Fw0zMDEyMzAwODExMTZaMIGXMQswCQYDVQQGEwJBVTERMA8GA1UECAwIVmljdG9y
aWExEjAQBgNVBAcMCU1lbGJvdXJuZTESMBAGA1UECgwJUEMgQ2xpZW50MREwDwYD
VQQLDAhDb21wdXRlcjEXMBUGA1UEAwwOKi5wY2NsaWVudC5jb20xITAfBgkqhkiG
9w0BCQEWEnBjY2xpZW50QGdtYWlsLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
ADCCAgoCggIBAJoVSGWjmvurCbfxOEQ3D7Q2imIL47eihXvyqafroeDnCzGF4MoK
ib7yMoVmAruEnHPUpdVICBmQlK0K3qK3jYQWfiFzARcRDOFJgt5Rt9FsWyI62k2l
1g21lKg6GVqyMOzJwDmLp0WhghacAxWJq2s/Ie1tjSMd6yvrPJ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+0RjEJZKrhp9UoKP5/1hLo3zjx2ghYKPplk6cj4C0Y3fTr5
WbgqaMQgRHckJHtYyuCkX2OiGczQW3c4rpYENt/Q94QqDIrk5vBRUKZbp/Ll0KBs
pPzLe/YO40PHnO2WJ9g2hfiRjYjoLj+mvKr+QqheYdH6in3pQ2WV0wYOwIJ6w9rh
xS7ui42KINgLAstGF3mca/TCBwm8oi1P
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions tests/certs/client-ext.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subjectAltName = IP:127.0.0.1
52 changes: 52 additions & 0 deletions tests/certs/client-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCaFUhlo5r7qwm3
8ThENw+0NopiC+O3ooV78qmn66Hg5wsxheDKCom+8jKFZgK7hJxz1KXVSAgZkJSt
Ct6it42EFn4hcwEXEQzhSYLeUbfRbFsiOtpNpdYNtZSoOhlasjDsycA5i6dFoYIW
nAMViatrPyHtbY0jHesr6zyd2Y4QI+2Hnae1TG86mP0Ad3fVPJLK5XHqbrefHW6s
nv4H6cgzLsZtySk0Ba3kLwv+ueAvDbASSlrsdV91j2/CZfoKEhXzC2pZhxL0/HfX
WwoCfgkX+QK6tQo2Gyo6ZvQNEL4sr6HsZldDTK+Sdwwe8a3mzYP+mM4PTpbtwuxx
KEjNTHe9kpmWat0Jt6qsyNZgScmQf9M70wpMzqD4sK0Oj8COsR3kWouJ/gybP4kk
9okSLf/z7WX9N6AGHd5S8+Ecs0x9VgrcJLwkzAlfbyg/VZYYhUxQA4il3cTJExOL
gRqnEMOn9CYwOUMu84SyPUODS4N/bzZ0ZnGDaFT372q3LC4REgPZh9hIdoEiOm0n
gMFyPd4dB7G5gqGhZzmJHXYXtSioQ3K1x74/Lo2rR7Wu/R2uHz01+XKvaib+PU4v
O6OxfJuPUfRGgxbNiuqd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b6JN+2ibKg4HqGMF1
j+ECggEAJMCA6WpPxD62OhB0kcm9rzT56UmA4SVapqwbzVGX0CX3Ftcu6deLWeyd
VtixRRo9lNIRZX++L2THPKuzXFKjPIMLlE24NIRIz2STbpL3YxWWdmxFfI9qjG7Y
Y3IGcIo2jyG6IOfM7A9ehLzNx3ZlVDB7t1UcynHHTx/n93hk7/2ERCRMWZFooL+1
ZTsQXdwMPmKJ8LXshlZXTHOI4Uqg8VLeu9Q1vDZCxaTzJav31YDmaZJbrwgtszKa
W+fp8NUlnZOJOIg+JDVWUYsdzSLvhf+mUTJts4GXM4vHddPduWn7Il/pSxZ5OSdQ
qxz23KiRx1nWJOFiiAwFccZlR4jA9A==
-----END PRIVATE KEY-----
29 changes: 29 additions & 0 deletions tests/certs/client-req.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
-----BEGIN CERTIFICATE REQUEST-----
MIIE3TCCAsUCAQAwgZcxCzAJBgNVBAYTAkFVMREwDwYDVQQIDAhWaWN0b3JpYTES
MBAGA1UEBwwJTWVsYm91cm5lMRIwEAYDVQQKDAlQQyBDbGllbnQxETAPBgNVBAsM
CENvbXB1dGVyMRcwFQYDVQQDDA4qLnBjY2xpZW50LmNvbTEhMB8GCSqGSIb3DQEJ
ARYScGNjbGllbnRAZ21haWwuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIIC
CgKCAgEAmhVIZaOa+6sJt/E4RDcPtDaKYgvjt6KFe/Kpp+uh4OcLMYXgygqJvvIy
hWYCu4Scc9Sl1UgIGZCUrQreoreNhBZ+IXMBFxEM4UmC3lG30WxbIjraTaXWDbWU
qDoZWrIw7MnAOYunRaGCFpwDFYmraz8h7W2NIx3rK+s8ndmOECPth52ntUxvOpj9
AHd31TySyuVx6m63nx1urJ7+B+nIMy7GbckpNAWt5C8L/rngLw2wEkpa7HVfdY9v
wmX6ChIV8wtqWYcS9Px311sKAn4JF/kCurUKNhsqOmb0DRC+LK+h7GZXQ0yvkncM
HvG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JCXLCUv0CfSQPCF9nCkyW1so+1Y
4Q==
-----END CERTIFICATE REQUEST-----
34 changes: 34 additions & 0 deletions tests/certs/server-cert.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
-----BEGIN CERTIFICATE-----
MIIF5DCCA8ygAwIBAgIUSnBrxC4NbvFlUDZZr1OJUobZFGIwDQYJKoZIhvcNAQEL
BQAwgaoxCzAJBgNVBAYTAkFVMREwDwYDVQQIDAhWaWN0b3JpYTESMBAGA1UEBwwJ
TWVsYm91cm5lMRgwFgYDVQQKDA9EYXJjeSBGaW5hbmNpYWwxEzARBgNVBAsMCkdv
REJMZWRnZXIxHTAbBgNVBAMMFCouZGFyY3lmaW5hbmNpYWwuY29tMSYwJAYJKoZI
hvcNAQkBFhdzZWFuQGRhcmN5ZmluYW5jaWFsLmNvbTAeFw0yMTAxMDEwODExMTZa
Fw0zMDEyMzAwODExMTZaMIGXMQswCQYDVQQGEwJBVTERMA8GA1UECAwIVmljdG9y
aWExEjAQBgNVBAcMCU1lbGJvdXJuZTESMBAGA1UECgwJUEMgU2VydmVyMREwDwYD
VQQLDAhDb21wdXRlcjEXMBUGA1UEAwwOKi5wY3NlcnZlci5jb20xITAfBgkqhkiG
9w0BCQEWEnBjc2VydmVyQGdtYWlsLmNvbTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
ADCCAgoCggIBALBtKsxezGFWW3zqbUJaw1rVUjNpET4HoLV3NoDNbj9u+VDrOViF
J4Wzsav/sB186r7x7hj+eo95Rdsgx6DWUJRF35plys3x3IKB0SP6kTqXoUzEMaJw
3erb5CyNEM9+IyJQRtVRO2pYl+6PSK8GBDxGavlnExjWzGknENDCNJnzRgh6ff86
dRGSOd0v5ZSuy+g9XDvRZpEwSGpCO8DbkqssJ+4pGkhb1CRkoMlG93EKM83nokaL
5+YEDmeL2o/MuZ69XQG18MkRDmq7IFgJVleQUWIWkZAmgfFBlD+Buea1s/qPwRTy
+avwsJhMmXumpxGGmyRqUBzp9HFQ/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rbPOqW1UZ7C
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions tests/certs/server-ext.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
subjectAltName = IP:127.0.0.1
52 changes: 52 additions & 0 deletions tests/certs/server-key.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQCwbSrMXsxhVlt8
6m1CWsNa1VIzaRE+B6C1dzaAzW4/bvlQ6zlYhSeFs7Gr/7AdfOq+8e4Y/nqPeUXb
IMeg1lCURd+aZcrN8dyCgdEj+pE6l6FMxDGicN3q2+QsjRDPfiMiUEbVUTtqWJfu
j0ivBgQ8Rmr5ZxMY1sxpJxDQwjSZ80YIen3/OnURkjndL+WUrsvoPVw70WaRMEhq
QjvA25KrLCfuKRpIW9QkZKDJRvdxCjPN56JGi+fmBA5ni9qPzLmevV0BtfDJEQ5q
uyBYCVZXkFFiFpGQJoHxQZQ/gbnmtbP6j8EU8vmr8LCYTJl7pqcRhpskalAc6fRx
UP8u7EgrfpUUSL1+UM90jRAsbP8/LNmtQ9MT+KiBzz3G70TIQVcYYSIo3tDhIJV2
cyG7ayTAncQUG7b+OANr4ueP87PJph87H6z73zk0Y1Wg1kMVOG23g2tnGSXBRRnn
YGwQuIVL2BE7uEYEWCP0Y7+xb3vU62BCqRPnSfVcUkak8DlRAYyOnDG4Jr/xZr1R
VFJVJ4sDnR6zw6ggUA3O4/hq3kaFLFFaqi2/qjrBmc/veEeVNcnoKY6mzxf/Pfjp
rBlJ+//WtxZX/bteicFhSxFrAJ64EfKUZKj6HBbKxjLj2ts79VsWmHLMZDMCGwAI
apEcfv/sccpVeZLLsuFf4R3z9TOYdwIDAQABAoICADLuIMfEqg2DZ3/FEOtx1ilX
oZYzw4V7oDoigvpl02i+eXyRmwlhzwn62NSFSGsKz511q71NYUYfxTm/2cElfTeA
gE9LCWOwaW7HWP+g6uH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