Skip to content

Commit f3a3321

Browse files
committed
testserver: generate PKCS8 key for certs
This key format is needed by Java clients.
1 parent 7ccc74f commit f3a3321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testserver/testserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func NewTestServer(opts ...TestServerOpt) (TestServer, error) {
339339
// Create cert and key pair for the cockroach node.
340340
{"cert", "create-node", "localhost"},
341341
// Create cert and key pair for the root user (SQL client).
342-
{"cert", "create-client", "root"},
342+
{"cert", "create-client", "root", "--also-generate-pkcs8-key"},
343343
} {
344344
createCertCmd := exec.Command(cockroachBinary, append(args, certArgs...)...)
345345
log.Printf("%s executing: %s", testserverMessagePrefix, createCertCmd)

0 commit comments

Comments
 (0)