Interface KeyStoreConfig
-
Method Summary
Modifier and TypeMethodDescriptionThe credential provider configuration for the keys store.jks()Configure the JKS key store.other()Configure a key store with an arbitrary type.p12()Configure the PKCS12 key store.pem()Configures the PEM key/certificate pair.booleansni()Enables Server Name Indication (SNI).default void
-
Method Details
-
pem
Optional<PemKeyCertConfig> pem()Configures the PEM key/certificate pair. -
p12
Optional<P12KeyStoreConfig> p12()Configure the PKCS12 key store. -
jks
Optional<JKSKeyStoreConfig> jks()Configure the JKS key store. -
other
Optional<OtherKeyStoreConfig> other()Configure a key store with an arbitrary type. Use this for key store types not directly supported (e.g., BCFKS or PKCS11).Note that when using this option, the key store can either be created using a path/password fallback or use a specific
KeyStoreFactoryimplementation. In the first case, the key store will be created using the configured path and password. -
sni
@WithDefault("false") boolean sni()Enables Server Name Indication (SNI).Server Name Indication (SNI) is a TLS extension that allows a client to specify the hostname it is attempting to connect to during the TLS handshake. This enables a server to present different SSL certificates for multiple domains on a single IP address, facilitating secure communication for virtual hosting scenarios.
With this setting enabled, the client indicate the server name during the TLS handshake, allowing the server to select the right certificate.
When configuring the keystore with PEM files, multiple CRT/Key must be given. When configuring the keystore with a JKS or a P12 file, it selects one alias based on the SNI hostname. In this case, all the keystore password and alias password must be the same (configured with the
passwordandalias-passwordproperties. Do not set thealiasproperty. -
credentialsProvider
KeyStoreCredentialProviderConfig credentialsProvider()The credential provider configuration for the keys store. A credential provider offers a way to retrieve the key store password and alias password. Note that the credential provider is only used if the password / alias password are not set in the configuration. -
validate
default void validate(io.quarkus.arc.InstanceHandle<io.quarkus.tls.KeyStoreProvider> provider, String name)
-