org.llm4s.http.HttpTls
See theHttpTls companion object
@Stable
The TLS trust and client-certificate material every llm4s HTTP client uses: the llm4s.http.tls block.
llm4s.http.tls {
trustStore = "/etc/pki/corp-ca.p12"
trustStorePassword = ${?LLM4S_TRUSTSTORE_PASSWORD}
keyStore = "/etc/pki/client.p12" # optional: a client certificate, for mTLS gateways
keyStorePassword = ${?LLM4S_KEYSTORE_PASSWORD}
}
The trust store's certificates are trusted '''in addition to''' the JDK's default ones, so a corporate CA that re-signs traffic is accepted without losing the public CAs. A store may be PKCS12 or JKS; the type is detected from the file. The passwords are redacted in toString.
Build one with HttpTls.default and the with* setters; the constructor is private, so a new field never breaks a caller.
Value parameters
- keyStore
-
a store holding the client certificate and its key, for mutual TLS, if any
- keyStorePassword
-
the key store's password, also used for the key; never printed
- trustStore
-
a store of extra CA certificates to trust, if any
- trustStorePassword
-
the trust store's password, if it has one; never printed
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article