@ConditionalOnMissingBean(name = CasSSLContext.BEAN_NAME)
        @Bean
        @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
        public CasSSLContext casSslContext(
            @Qualifier("hostnameVerifier") final HostnameVerifier hostnameVerifier,
            final CasConfigurationProperties casProperties) throws Exception {
            val client = casProperties.getHttpClient().getTruststore();
            if (client.getFile() != null && client.getFile().exists() && StringUtils.isNotBlank(client.getPsw())) {
                return new DefaultCasSSLContext(client.getFile(), client.getPsw(),
                    client.getType(), casProperties.getHttpClient(), hostnameVerifier);
            }
            if ("none".equalsIgnoreCase(casProperties.getHttpClient().getHostNameVerifier())) {
                return CasSSLContext.disabled();
            }
            return CasSSLContext.system();
        }
This is {@link CasCoreHttpConfiguration}.

@author Misagh Moayyed
@since 5.1.0
core/cas-server-core-web/src/main/java/org/apereo/cas/config/CasCoreHttpConfiguration.java