Skip to main content

->SSLContext

function

babashka.http-client/->SSLContext

(->SSLContext [opts])
Constructs a `javax.net.ssl.SSLContext`. Options: * `:key-store` - a file, URI or URL or anything else that is compatible with `io/input-stream`, e.g. (io/resource somepath.p12) * `:key-store-pass` - the password for the keystore * `:key-store-type` - the type of keystore to create [note: not the type of the file] (default: pkcs12) * `:trust-store` - a file, URI or URL or anything else that is compatible with `io/input-stream`, e.g. (io/resource somepath.p12) * `:trust-store-pass` - the password for the trust store * `:trust-store-type` - the type of trust store to create [note: not the type of the file] (default: pkcs12) * `:insecure` - if `true`, an insecure trust manager accepting all server certificates will be configured. Note that `:keystore` and `:truststore` can be set using the `javax.net.ssl.keyStore` and `javax.net.ssl.trustStore` System properties globally.

No examples yet. Be the first to add one!