How to create a self-signed certificate in my WHM?

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.

cPanel Hosting from WebhostFace

Enter all the fields accordingly and then the Create button. If everything is done correctly, you will see the SSL details as shown.