Hello, I’m trying to create a new SSL in my new server but when the process is finishing I got an error with this message:
An unexpected error occurred:
StopIteration
Please see the logfiles in /var/log/letsencrypt for more details.
And in the Log file, I have this, but I don’t understand
2020-06-16 11:45:32,236:DEBUG:certbot.error_handler:Calling registered functions
2020-06-16 11:45:32,237:DEBUG:certbot.reporter:Reporting to user: Unable to install the certificate
2020-06-16 11:45:32,237:DEBUG:certbot.log:Exiting abnormally:
Traceback (most recent call last):
File "/usr/bin/certbot", line 11, in <module>
load_entry_point('certbot==0.31.0', 'console_scripts', 'certbot')()
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1365, in main
return config.func(config, plugins)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 1126, in run
_install_cert(config, le_client, domains, new_lineage)
File "/usr/lib/python3/dist-packages/certbot/main.py", line 760, in _install_cert
path_provider.cert_path, path_provider.chain_path, path_provider.fullchain_path)
File "/usr/lib/python3/dist-packages/certbot/client.py", line 516, in deploy_certificate
fullchain_path=fullchain_path)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 334, in deploy_cert
vhosts = self.choose_vhosts(domain)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 358, in choose_vhosts
return [self.choose_vhost(domain, create_if_no_ssl)]
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 540, in choose_vhost
vhost = self.make_vhost_ssl(vhost)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 1116, in make_vhost_ssl
self._copy_create_ssl_vhost_skeleton(nonssl_vhost, ssl_fp)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 1260, in _copy_create_ssl_vhost_skeleton
ssl_vh_contents, sift = self._sift_rewrite_rules(orig_contents)
File "/usr/lib/python3/dist-packages/certbot_apache/configurator.py", line 1332, in _sift_rewrite_rules
line = next(contents)
StopIteration
2020-06-16 11:45:32,238:ERROR:certbot.log:An unexpected error occurred:
It’s an Instance on AWS with Ubuntu System and Apache, My websites are vHost’s.