Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.
Hi there,
I’m attempting to use a LE cert on one of our company’s older web servers. I absolutely apologize that I cannot provide the domain in question but I hope this can be resolved without the need for that. The error states that it cannot parse a line in the apache config file that is used exclusively for SSL Vhosts.
Line 837 cannot be parsed. It is the bottom line in that file and only contains the following:
</VirtualHost>
I don’t see any problem with the syntax here. What am I doing wrong or what can I do to fix this? I appreciate it is on an older platform but this cannot be upgraded easily hence I’m hoping to find a fix for this!
Thanks! More info below:
My domain is:
<private sorry!>
I ran this command:
./certbot-auto --apache certonly
It produced this output:
Could not choose appropriate plugin: The apache plugin is not working; there may be problems with your existing configuration.
The error was: PluginError(‘There has been an error in parsing the file /etc/apache2/ssl-vhost.conf on line 837: Syntax error’,)
My web server is (include version):
Apache 2.2.22
The operating system my web server runs on is (include version):
Ubuntu 12.04
My hosting provider, if applicable, is:
n/a
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, or provide the name and version of the control panel):
No
Ha. Good point! I called the file up in vi and displayed line numbers. Sorry but it appears that there are only 836 lines in the file! The error states it cannot parse line 837. When I ‘goto’ line 837 it takes me to the bottom line which is actually 836.
There’s nothing else after 836 it is absolutely the last line of the file so is there something else that should be in place to precent certbot from trying to parse anything beyond the bottom line?