private void parseSSLCertFile ( ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "parseSSLCertFile" ) ; } String fileName = null ; String lineRead = null ; BufferedReader bufferReader = null ; // Obtain Default Cert Label certDefaultLabel = getProperty ( PROTOCOL_HTTPS_CERT_DEFAULT_LABEL ) ; // Obtain Cert Mapping File try { fileName = getProperty ( PROTOCOL_HTTPS_CERT_MAPPING_FILE ) ; if ( fileName != null && 0 < fileName . length ( ) ) { bufferReader = new BufferedReader ( new FileReader ( fileName ) ) ; // For each entry, parse the label and ip address lineRead = bufferReader . readLine ( ) ; while ( lineRead != null ) { extractSSLServerCert ( lineRead . trim ( ) ) ; lineRead = bufferReader . readLine ( ) ; } } } catch ( Exception e ) { FFDCFilter . processException ( e , getClass ( ) . getName ( ) , "parseSSLCertFile" , this ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) Tr . debug ( tc , "Error parsing file; " + e ) ; } finally { if ( null != bufferReader ) { try { bufferReader . close ( ) ; } catch ( IOException ioe ) { // ignore } } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "parseSSLCertFile" ) ; } }
Parse Server SSL Certificate Mapping File .