We are having all sorts of confusion because of a lack of proper documentation and instructions. I am going to show the whole process step by step here.
- Create a DNS record (A type) for your desired domain. Something like 'server.example.com'.
- Make sure you set it to "DNS Only" if you are using Cloudflare.
- Go to your aaPanel's settings page and disable SSL first. It will reload your aaPanel.
- Now go to settings and set the domain as 'server.example.com'. Click save which will reload your panel.
- Now enable panel SSL and make sure you set 'Let's Encrypt' and follow the process. It will verify and enable SSL and you're done.
- Now you can access the panel using server.example.com:panel-port/security-entrance.
I hope this helps.
Thanks!