Thank you for that Mike.
I tried all sorts of commands before asking for help, most I didn't mention because they didn't work. The command line I posted is the one that didn't come up with errors with the server running. Here's what I tried and the results I got.
Here's the text file I made for myself:
From User Guide — Certbot 2.6.0 documentation
All run with the -v switch to get details.
- certbot renew --dry-run
Processing C:\Certbot\renewal\brisray.com.conf
Certificate not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator standalone, Installer None
Simulating renewal of an existing certificate for brisray.com and 5 more domains
Performing the following challenges:
http-01 challenge for brisray.com
http-01 challenge for hmsgambia.org
http-01 challenge for ihor4x4.com
http-01 challenge for www.brisray.com
http-01 challenge for www.hmsgambia.org
http-01 challenge for www.ihor4x4.com
Cleaning up challenges
Failed to renew certificate brisray.com with error: Problem binding to port 80: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
All simulated renewals failed. The following certificates could not be renewed:
C:\Certbot\live\brisray.com\fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile C:\Certbot\log\letsencrypt.log or re-run Certbot with -v for more details.
or
- certbot --standalone --dry-run
--dry-run currently only works with the 'certonly' or 'renew' subcommands ('run')
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile C:\Users\brisr\AppData\Local\Temp\certbot-log-fao4d9g7\log or re-run Certbot with -v for more details.
or
- certbot renew --webroot --dry-run
Processing C:\Certbot\renewal\brisray.com.conf
Certificate not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Simulating renewal of an existing certificate for brisray.com and 5 more domains
Performing the following challenges:
http-01 challenge for brisray.com
http-01 challenge for hmsgambia.org
http-01 challenge for ihor4x4.com
http-01 challenge for www.brisray.com
http-01 challenge for www.hmsgambia.org
http-01 challenge for www.ihor4x4.com
Cleaning up challenges
Failed to renew certificate brisray.com with error: Missing command line flag or config entry for this setting:
Input the webroot for brisray.com:
All simulated renewals failed. The following certificates could not be renewed:
C:\Certbot\live\brisray.com\fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
or
- certbot --standalone
With the standalone plugin, you probably want to use the "certonly" command, eg:
certbot certonly --standalone
(Alternatively, add a --installer flag. See User Guide — Certbot 2.6.0 documentation
and "--help plugins" for more information.)
or
- certbot renew --apache --dry-run
Processing C:\Certbot\renewal\brisray.com.conf
Certificate not due for renewal, but simulating renewal for dry run
Failed to renew certificate brisray.com with error: The requested apache plugin does not appear to be installed
All simulated renewals failed. The following certificates could not be renewed:
C:\Certbot\live\brisray.com\fullchain.pem (failure)
1 renew failure(s), 0 parse failure(s)
or
- certbot --standalone --apache --dry-run
--dry-run currently only works with the 'certonly' or 'renew' subcommands ('run')
or
- certbot certonly --webroot --apache --dry-run
Too many flags setting configurators/installers/authenticators 'apache' -> 'webroot'
or
- certbot certonly --webroot --dry-run
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel): brisray.com www.brisray.com hmsgambia.org www.hmsgambia.org ihor4x4.com www.ihor4x4.com
Simulating renewal of an existing certificate for brisray.com and 5 more domains
Input the webroot for brisray.com: (Enter 'c' to cancel): C:\Apache24\htdocs\brisray
Select the webroot for hmsgambia.org:
1: Enter a new webroot
2: C:\Apache24\htdocs\brisray
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1
Input the webroot for hmsgambia.org: (Enter 'c' to cancel): C:\Apache24\htdocs\hmsgambia
Select the webroot for ihor4x4.com:
1: Enter a new webroot
2: C:\Apache24\htdocs\hmsgambia
3: C:\Apache24\htdocs\brisray
Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1
Input the webroot for ihor4x4.com: (Enter 'c' to cancel): C:\Apache24\htdocs\icehouseoffroad
Select the webroot for www.brisray.com:
1: Enter a new webroot
2: C:\Apache24\htdocs\icehouseoffroad
3: C:\Apache24\htdocs\hmsgambia
4: C:\Apache24\htdocs\brisray
Select the appropriate number [1-4] then [enter] (press 'c' to cancel): 4
Select the webroot for www.hmsgambia.org:
1: Enter a new webroot
2: C:\Apache24\htdocs\brisray
3: C:\Apache24\htdocs\icehouseoffroad
4: C:\Apache24\htdocs\hmsgambia
Select the appropriate number [1-4] then [enter] (press 'c' to cancel): 4
Select the webroot for www.ihor4x4.com:
1: Enter a new webroot
2: C:\Apache24\htdocs\hmsgambia
3: C:\Apache24\htdocs\brisray
4: C:\Apache24\htdocs\icehouseoffroad
Select the appropriate number [1-4] then [enter] (press 'c' to cancel): 4
The dry run was successful.
The above works without stopping Apache but am I going to get 1 SAN certificate or 6 separate ones?
Does it check if the certifcates need renewing?
Does Apache need restarting to get the new certificates?
So try this to get everything on one line:
- certbot certonly --webroot --dry-run -w C:\Apache24\htdocs\brisray -d brisray.com -d www.brisray.com -w C:\Apache24\htdocs\hmsgambia -d hmsgambia.org -d www.hmsgambia.org -w C:\Apache24\htdocs\icehouseoffroad -d ihor4x4.com -d www.ihor4x4.com
It works!
Simulating renewal of an existing certificate for brisray.com and 5 more domains
The dry run was successful.