https: throw error if required params missing
throw Error when required parameters for options in https.createServer are missing
The required parameters of https.createServer is key and cert. When these parameters are not provided by the user then a new Error is thrown for the missing parameter. A subsequent test is also added to verify the same.
This was discussed in Issue: https://github.com/nodejs/node/issues/3024
cc: @jasnell @mhdawson