@ Nullable public static SSLContext createRestServerSSLContext ( Configuration config ) throws Exception { final RestSSLContextConfigMode configMode ; if ( isRestSSLAuthenticationEnabled ( config ) ) { configMode = RestSSLContextConfigMode . MUTUAL ; } else { configMode = RestSSLContextConfigMode . SERVER ; } return createRestSSLContext ( config , configMode ) ; }
Creates an SSL context for the external REST endpoint server .