load-keystore
(load-keystore keystore-stream password)
Loads a KeyStore from the specified file. Param keystore-stream is
an InputStream. If password is provided, that will be used to unlock
the KeyStore. Password may be nil. If keystore-stream is nil, this
returns an empty default KeyStore.
ssl-context
(ssl-context & {:keys [keystore-file keystore-password certificate-alias certificate-file trust-managers]})
Creates a new SSLContext with x509 certificates. This allows you to use client
certificates in your async http requests.
File params should be relative to resources when your app is running as a jar.
For example, if your certificate file is in resources/security/mycert.pem,
then the :certificate-file param would be "security/mycert.pem".
:keystore-file - Path to Java keystore containing any private keys and
trusted certificate authority certificates required for this connection.
If this is nil or missing, a default keystore will be used.
:keystore-password - Password to unlock KeyStore if keystore file is provided.
:certificate-file The path to the file containing an X509 certificate
(or certificate chain) to be used in the https connection
:certificate-alias - A name by which to access an X509 certificate that will
be loaded into the KeyStore.
:trust-managers - [optional] A seq of javax.net.ssl.X509TrustManager objects.
These are used to verify the certificates sent by the remote host. If
you don't specify this option, the connection will use an instance of
BlindTrustManager, which blindly trusts all certificates. This is handy,
but it's not particularly safe.