Thanks everybody for the feedback.
I have made a new CSR with:
- CN =
amanda-stewart-hypnotherapy.com
- SAN =
amanda-stewart-hypnotherapy.com,www.amanda-stewart-hypnotherapy.com
however, cerbot is still saying there is a mis-match.
sudo certbot certonly --cert-name amanda-stewart-hypnotherapy.com -d 'amanda-stewart-hypnotherapy.com,www.amanda-stewart-hypnotherapy.com' --csr /etc/ssl/amanda-stewart-hypnotherapy/ash_server.csr --manual --preferred-challenges dns
Inconsistent domain requests:
From the CSR: amanda-stewart-hypnotherapy.com
From command line/config: amanda-stewart-hypnotherapy.com, www.amanda-stewart-hypnotherapy.com
removing the www domain from the certbot command stops the error, but produces a cert with only 1 SAN even though the csr has 2 domains.
Here is the log:
2022-03-03 11:45:47,421:DEBUG:certbot._internal.main:certbot version: 1.23.0
2022-03-03 11:45:47,422:DEBUG:certbot._internal.main:Location of certbot entry point: /usr/local/bin/certbot
2022-03-03 11:45:47,422:DEBUG:certbot._internal.main:Arguments: ['--cert-name', 'amanda-stewart-hypnotherapy.com', '-d', 'amanda-stewart-hypnotherapy.com,www.amanda-stewart-hypnotherapy.com', '--csr', '/etc/ssl/amanda-stewart-hypnotherapy/ash_server.csr', '--manual', '--preferred-challenges', 'dns']
2022-03-03 11:45:47,422:DEBUG:certbot._internal.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#apache,PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2022-03-03 11:45:47,449:DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/local/bin/certbot", line 33, in <module>
sys.exit(load_entry_point('certbot==1.23.0', 'console_scripts', 'certbot')())
File "/usr/local/Cellar/certbot/1.23.0/libexec/lib/python3.10/site-packages/certbot/main.py", line 19, in main
return internal_main.main(cli_args)
File "/usr/local/Cellar/certbot/1.23.0/libexec/lib/python3.10/site-packages/certbot/_internal/main.py", line 1651, in main
args = cli.prepare_and_parse_args(plugins, cli_args)
File "/usr/local/Cellar/certbot/1.23.0/libexec/lib/python3.10/site-packages/certbot/_internal/cli/__init__.py", line 452, in prepare_and_parse_args
return helpful.parse_args()
File "/usr/local/Cellar/certbot/1.23.0/libexec/lib/python3.10/site-packages/certbot/_internal/cli/helpful.py", line 213, in parse_args
self.handle_csr(parsed_args)
File "/usr/local/Cellar/certbot/1.23.0/libexec/lib/python3.10/site-packages/certbot/_internal/cli/helpful.py", line 294, in handle_csr
raise errors.ConfigurationError(
certbot.errors.ConfigurationError: Inconsistent domain requests:
From the CSR: amanda-stewart-hypnotherapy.com
From command line/config: amanda-stewart-hypnotherapy.com, www.amanda-stewart-hypnotherapy.com
2022-03-03 11:45:47,449:ERROR:certbot._internal.log:Inconsistent domain requests:
From the CSR: amanda-stewart-hypnotherapy.com
From command line/config: amanda-stewart-hypnotherapy.com, www.amanda-stewart-hypnotherapy.com
and here is the CSR...
-----BEGIN CERTIFICATE REQUEST-----
MIIDUzCCAjsCAQAwgZMxCzAJBgNVBAYTAkdCMQ8wDQYDVQQIDAZMb25kb24xDzAN
BgNVBAcMBkxvbmRvbjEMMAoGA1UECgwDYXNoMSgwJgYDVQQDDB9hbWFuZGEtc3Rl
d2FydC1oeXBub3RoZXJhcHkuY29tMSowKAYJKoZIhvcNAQkBFhthbWFuZGFzdGV3
YXJ0c3BhbUBnbWFpbC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDKJQN8y5dPOFwYB+S3vIK+qnrBQQKD9nwJgXc2T+XSyHGsS16YNNJ5M/A8vqSI
LodzNTOA6C8sX1EEqw7MemHhm3OJypsThL28YMmSS2joHlGBd995GA0Gx/tnRPwW
cEzWdepr/m6dSx9Ivu9Y11ITyPvqQhsoPeVHD11RSurbLbYyWsbO/NrF6UujX1DS
eFuETY80A3/srBOCIYXCrfunxiQSvI54Qu1IA6bSQgwToDQTpUIGo0k6s1/V8aUT
+cE2tcRywkcBJIIqodTXYWG6TsP3R8j0k7b9rY4wq3titQofLh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