Uploaded image for project: 'Community Development'
  1. Community Development
  2. COMDEV-334

localhost.crt does not exist or is empty

    XMLWordPrintableJSON

Details

    • IT Help
    • Status: Resolved
    • Blocker
    • Resolution: Invalid
    • Help Wanted
    • None
    • CentOS Linux release 8.0.1905 (Core) Minimal install.

    Description

      I am setting up Certbot for my web and mail server and after starting the installation of Certbot I got the following:

       
      [root@mail ~]# /usr/local/bin/certbot-auto certonly --apache                                                                                    
      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                                                          
                                                                                                                                                      
      Could not choose appropriate plugin: 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.con
      f:\nSSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty\n",)                                                 
      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.con
      f:\nSSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty\n",) 
       
      Here is what I have in my /var/log/letsencrypt/letsencrypt.log:

      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

      2019-10-13 00:16:26,264:DEBUG:certbot.plugins.selection:Single candidate plugin: * apache
      Description: Apache Web Server plugin
      Interfaces: IAuthenticator, IInstaller, IPlugin
      Entry point: apache = certbot_apache.entrypoint:ENTRYPOINT
      Initialized: <certbot_apache.override_centos.CentOSConfigurator object at 0x7f7549fdbdd8>
      Prep: 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

      2019-10-13 00:16:26,264:DEBUG:certbot.plugins.selection:Selected authenticator None and installer None
      2019-10-13 00:16:26,265:INFO:certbot.main:Could not choose appropriate plugin: 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.con
      f:\nSSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty\n",)
      2019-10-13 00:16:26,266:DEBUG:certbot.log:Exiting abnormally:
      Traceback (most recent call last):
      File "/opt/eff.org/certbot/venv/bin/letsencrypt", line 11, in <module>
      load_entry_point('letsencrypt==0.7.0', 'console_scripts', 'letsencrypt')()
      File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/main.py", line 1378, in main
      return config.func(config, plugins)
      File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/main.py", line 1244, in certonly
      installer, auth = plug_sel.choose_configurator_plugins(config, plugins, "certonly")
      File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/plugins/selection.py", line 235, in choose_configurator_plugins
      diagnose_configurator_problem("authenticator", req_auth, plugins)
      File "/opt/eff.org/certbot/venv/lib64/python3.6/site-packages/certbot/plugins/selection.py", line 339, in diagnose_configurator_problem
      raise errors.PluginSelectionError(msg)
      certbot.errors.PluginSelectionError: 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.con
      f:\nSSLCertificateFile: file '/etc/pki/tls/certs/localhost.crt' does not exist or is empty\n",)
       
      Any help would be awesome.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Kellian Michael Miller
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: