Function: LoadJKS()

October 16, 2025 ยท View on GitHub

xk6-kafka


Function: LoadJKS()

LoadJKS(jksConfig): JKS

Defined in: index.d.ts:558

Function

Parameters

jksConfig

JKSConfig

JKS configuration.

Returns

JKS

  • JKS client and server certificates and private key.

Description

Load a JKS keystore from a file.

Example

const jks = LoadJKS({
  path: "/path/to/keystore.jks",
  password: "password",
  clientCertAlias: "localhost",
  clientKeyAlias: "localhost",
  clientKeyPassword: "password",
  serverCaAlias: "ca",
});