ssl_files.js
function readFileContent(fileName){
    try{
        return(fs.readFileSync(fileName , "utf-8"));
    }catch(e){
        console.log("---readFileContent-- Error reading file "+fileName);
        console.log(e);
        return null;
    }
}
function readFileContent(fileName){
    try{
        return(fs.readFileSync(fileName , "utf-8"));
    }catch(e){
        console.log("---readFileContent-- Error reading file "+fileName);
        console.log(e);
        return null;
    }
}
function readFileContent ( fileName ) { try { return ( fs . readFileSync ( fileName , "utf-8" ) ) ; } catch ( e ) { console . log ( "---readFileContent-- Error reading file " + fileName ) ; console . log ( e ) ; return null ; } }
Reads cert and keys
@param fileName (full path)
@returns {*}
Reads cert and keys