KafkaTestUtils.createAndStoreKey(serviceDN, serviceDN, BigInteger.valueOf(30),
"sspass", "myservicekey", "skpass", keystore);
clientKeystorePath =
KafkaTestUtils.createAndStoreKey(clientDN, clientDN, BigInteger.valueOf(31),
"cspass", "myclientkey", "ckpass", keystore);
<BUG>File truststoreFile = File.createTempFile("kafkatruststore", ".jks");
keystore.store(new FileOutputStream(truststoreFile), "security".toCharArray());

truststorePath = truststoreFile.getPath();</BUG>
zkServer = new TestingServer();

KafkaTestUtils.createAndStoreKey(serviceDN, serviceDN, BigInteger.valueOf(30),
"sspass", "myservicekey", "skpass", keystore);
clientKeystorePath =
KafkaTestUtils.createAndStoreKey(clientDN, clientDN, BigInteger.valueOf(31),
"cspass", "myclientkey", "ckpass", keystore);
File truststoreFile = File.createTempFile("kafkatruststore", ".jks");
try (OutputStream output = new FileOutputStream(truststoreFile)) {
keystore.store(output, "security".toCharArray());
}
truststorePath = truststoreFile.getPath();
zkServer = new TestingServer();
