@Test
    void verifyConnectionWithSSL() throws Throwable {
        val props = new BaseRedisProperties()
            .setHost("localhost")
            .setPort(16669)
            .setUsername("default")
            .setPassword("pAssw0rd123")
            .setUseSsl(true)
            .setVerifyPeer(false)
            .setKeyCertificateChainFile(new File("../../ci/tests/redis/certs/redis.crt"))
            .setKeyFile(new File("../../ci/tests/redis/certs/redis.key"))
            .setShareNativeConnections(Boolean.FALSE);
        val connection = RedisObjectFactory.newRedisConnectionFactory(props, true, CasSSLContext.disabled());
        assertNotNull(connection);
        try (val con = connection.getConnection()) {
            con.select(0);
        }
    }
This is {@link RedisObjectFactoryTests}.

@author Misagh Moayyed
@since 6.3.0
support/cas-server-support-redis-core/src/test/java/org/apereo/cas/redis/core/RedisObjectFactoryTests.java