Before I obtain an LE certificate for a new domain, I have to first set the domain up up in Apache in a .conf file, restart Apache, test that the domain is working (for a website), then issue the following command with Certbot:
certbot certonly --webroot -w /home/www/mywebsite -d domain.com
Then I go back into the .conf file to add all the SSL lines needed for that domain, then restart Apache again.
Is there a way to bypass the first step and simply get a certificate for the domain without having to have the domain actually working on the server yet? Or are both steps required to get a certificate?
The operating system my web server runs on is (include version): CentOS 7.6
I can login to a root shell on my machine (yes or no, or I don’t know): Yes
I’m using a control panel to manage my site: No
The version of my client is: Certbot 0.2.1