Invalid, exceptions, errors - help!

Hi there,

Hope to get some help here on resolving this issue.

I’m using RHEL 7, Apache (hosted AWS).

Successfully enabled the EPEL repository and enable EPEL optional channel but got the following error after using the “sudo certbot --apache” command. Would be grateful for any help. Have copied the log below for your reference

===================

[root@ip-[redacted] /]# sudo certbot --apache
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
No names were found in your configuration files. Please enter in your domain
name(s) (comma and/or space separated) (Enter ‘c’ to cancel): [redacted]
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for [redacted]

We were unable to find a vhost with a ServerName or Address of [redacted].
Which virtual host would you like to choose?
(note: conf files with multiple vhosts are not yet supported)

1: ssl.conf | | HTTPS | Enabled

Press 1 [enter] to confirm the selection (press ‘c’ to cancel): 1
Error while running apachectl graceful.

Job for httpd.service invalid.

Cleaning up challenges
Error while running apachectl graceful.

Job for httpd.service invalid.

Encountered exception during recovery
Error while running apachectl graceful.

Job for httpd.service invalid.
Traceback (most recent call last):
File “/usr/lib/python2.7/site-packages/certbot/error_handler.py”, line 100, in _call_registered
self.funcs-1
File “/usr/lib/python2.7/site-packages/certbot/auth_handler.py”, line 284, in _cleanup_challenges
self.auth.cleanup(achalls)
File “/usr/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 1945, in cleanup
self.restart()
File “/usr/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 1834, in restart
self._reload()
File “/usr/lib/python2.7/site-packages/certbot_apache/configurator.py”, line 1845, in _reload
raise errors.MisconfigurationError(str(err))
MisconfigurationError: Error while running apachectl graceful.

Job for httpd.service invalid.

Error while running apachectl graceful.

Job for httpd.service invalid.

==============================

What did i do wrong? :open_mouth:

It looks like something went wrong with Certbot’s attempt to modify your Apache configuration. It seems it attempted to modify the ssl.conf file so that’s likely where the problem is - could you share the contents of that file?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.