FakeSSLTools

object FakeSSLTools
class Object
trait Matchable
class Any

Value members

Concrete methods

def buildContextAndTrust(keyStore: KeyStore): (SSLContext, X509TrustManager)

NOT FOR PRODUCTION USE. Builds a "TLS" SSLContext and X509TrustManager initializing both with the keys and certificates in the provided KeyStore. This means the SSLContext will produce SSLEngine's, SSLSocket``s andSSLServerSocket's that will use aKeyPairfrom theKeyStore, and will trust anytrustedCertEntryin theKeyStore`.

NOT FOR PRODUCTION USE. Builds a "TLS" SSLContext and X509TrustManager initializing both with the keys and certificates in the provided KeyStore. This means the SSLContext will produce SSLEngine's, SSLSocket``s andSSLServerSocket's that will use aKeyPairfrom theKeyStore, and will trust anytrustedCertEntryin theKeyStore`.

This is a naïve implementation for testing purposes only.