public static SSLContext buildSSLContext(final ClientCertificateProperties clientCertificate) {
        return FunctionUtils.doUnchecked(() -> {
            val keyManagerFactory = SSLUtils.buildKeystore(clientCertificate);
            val context = SSLContext.getInstance("TLS");
            context.init(keyManagerFactory.getKeyManagers(), null, RandomUtils.getNativeInstance());
            return context;
        });
    }
Build ssl context.

@param clientCertificate the client certificate
@return the ssl context
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/ssl/SSLUtils.java