Replacing the SSL Certificate

You can replace the default SSL certificate that comes with the Metasploit for the web UI by going to path/to/metasploit/opt/metasploit/nginx/cert and replacing the files that are there with your own. If you have used default settings during install, Metasploit must be installed under /opt.