added 'fs' dependency and loaded certificate and private key