To read more about this topic you can check out the below URLs: https://metasploit.help.rapid7.com/docs/replacing-the-ssl-certificate https://github.com/rapid7/metasploit-framework/wiki/Metasploit-Web-Service https://www.offensive-security.com/metasploit-unleashed/scanner-http-auxiliary-modules/