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.
My domain is:tehcxweb.com
I ran this command:
sudo /usr/local/bin/certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email email@example.com -d mail.tehcxweb.xyz
It produced this output:
Creating virtual environment…
Installing Python packages…
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Error while running apachectl configtest.
AH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file ‘/etc/pki/tls/certs/localhost.crt’ does not exist or is empty
The apache plugin is not working; there may be problems with your existing configuration.
The error was: MisconfigurationError(“Error while running apachectl configtest.\n\nAH00526: Syntax error on line 85 of /etc/httpd/conf.d/ssl.conf:\nSSLCertificateFile: file ‘/etc/pki/tls/certs/localhost.crt’ does not exist or is empty\n”,)
[tav@mail ~]$ sudo systemctl reload httpd
Job for httpd.service failed because the control process exited with error code.
See “systemctl status httpd.service” and “journalctl -xe” for details.
My web server is (include version):Apache/2.4.37 (centos)
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:reg.ru
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):
The version of my client is (e.g. output of
certbot --version or
certbot-auto --version if you’re using Certbot):certbot 1.3.0
after errors apache also fails to start
Apache in default configuration
\ ServerName mail.tehcxweb.xyz
\ DocumentRoot /var/www/html/
I’m just starting to learn CentOS help me figure it out