In order to generate a self-signed certificate you should log into your WHM (Web Host Manager) -> SSL/TLS.
Click the Generate an SSL Certificate and Signing Request button.
Enter all the fields accordingly and then the Create button. If everything is done correctly, you will see the SSL details as shown.