Open SJAnderson opened 6 years ago
The error message is directly from the Go TLS library. This occurs when the certificate/key files do not parse properly. Make sure the argument to echo
is correct, it looks like it's getting garbled.
@mberhault have you been able to use this with secure DBs?
Sure:
./tpcc/tpcc -load 'postgres://root@localhost:26257/?sslmode=verify-full&sslrootcert=certs/ca.crt&sslcert=certs/client.root.crt&sslkey=certs/client.root.key'
Created 9 tables
Loaded 100000/100000 items
TPCCLoadItem 100000 28456.9 ns/op
Loading warehouse 1/1
Loaded 100000/100000 stocks
TPCCLoadStock 100000 63232.9 ns/op
etc...
Again, the error you listed is from the Go TLS library (used in our tpcc code) trying to parse a certificate.
Also, you switched sslcert
and sslrootcert
in your connection url.
my docker file
execution
Seems like I can only use an insecure connection.