vertx / io.vertx.kotlin.core.net / pemKeyCertOptionsOf

# pemKeyCertOptionsOf

`fun pemKeyCertOptionsOf(certPath: String? = null, certPaths: Iterable<String>? = null, certValue: Buffer? = null, certValues: Iterable<Buffer>? = null, keyPath: String? = null, keyPaths: Iterable<String>? = null, keyValue: Buffer? = null, keyValues: Iterable<Buffer>? = null): PemKeyCertOptions`

A function providing a DSL for building io.vertx.core.net.PemKeyCertOptions objects.

Key store options configuring a list of private key and its certificate based on Privacy-enhanced Electronic Email (PEM) files.

A key file must contain a non encrypted private key in PKCS8 format wrapped in a PEM block, for example:

Or contain a non encrypted private key in PKCS1 format wrapped in a PEM block, for example:

A certificate file must contain an X.509 certificate wrapped in a PEM block, for example:

Keys and certificates can either be loaded by Vert.x from the filesystem:

Or directly provided as a buffer:

Several key/certificate pairs can be used:

### Parameters

`certPath` - Set the path of the first certificate, replacing the previous certificates paths

`certPaths` - Set all the paths to the certificates files

`certValue` - Set the first certificate as a buffer, replacing the previous certificates buffers

`certValues` - Set all the certificates as a list of buffer

`keyPath` - Set the path of the first key file, replacing the keys paths

`keyPaths` - Set all the paths to the keys files

`keyValue` - Set the first key a a buffer, replacing the previous keys buffers

`keyValues` - Set all the keys as a list of buffer