protected static void constructSecurity ( Properties props ) throws IOException { props . setProperty ( "security-client-auth-init" , GeodeConfigAuthInitialize . class . getName ( ) + ".create" ) ; //write to file File sslFile = saveEnvFile ( GeodeConfigConstants . SSL_KEYSTORE_CLASSPATH_FILE_PROP ) ; System . out . println ( "sslFile:" + sslFile ) ; File sslTrustStoreFile = saveEnvFile ( GeodeConfigConstants . SSL_TRUSTSTORE_CLASSPATH_FILE_PROP ) ; String sslTrustStoreFilePath = "" ; if ( sslTrustStoreFile != null ) sslTrustStoreFilePath = sslTrustStoreFile . getAbsolutePath ( ) ; props . setProperty ( "ssl-keystore" , ( sslFile != null ) ? sslFile . getAbsolutePath ( ) : "" ) ; props . setProperty ( "ssl-keystore-password" , Config . getPropertyEnv ( "ssl-keystore-password" , "" ) ) ; props . setProperty ( "ssl-truststore" , sslTrustStoreFilePath ) ; props . setProperty ( "ssl-protocols" , Config . getPropertyEnv ( "ssl-protocols" , "" ) ) ; props . setProperty ( "ssl-truststore-password" , Config . getPropertyEnv ( "ssl-truststore-password" , "" ) ) ; props . setProperty ( "ssl-keystore-type" , Config . getPropertyEnv ( "ssl-keystore-type" , "" ) ) ; props . setProperty ( "ssl-ciphers" , Config . getPropertyEnv ( "ssl-ciphers" , "" ) ) ; props . setProperty ( "ssl-require-authentication" , Config . getPropertyEnv ( "ssl-require-authentication" , "" ) ) ; props . setProperty ( "ssl-enabled-components" , Config . getPropertyEnv ( "ssl-enabled-components" , "" ) ) ; }
Initialize security properties