{"action":"created","issue":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2216","labels_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2216/labels{/name}","comments_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2216/comments","events_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2216/events","html_url":"https://github.com/letsencrypt/letsencrypt/issues/2216","id":127135729,"number":2216,"title":"Apache plugin fails with \"cannot find a cert or key directive\"","user":{"login":"osirisinferi","id":14792563,"avatar_url":"https://avatars.githubusercontent.com/u/14792563?v=3","gravatar_id":"","url":"https://api.github.com/users/osirisinferi","html_url":"https://github.com/osirisinferi","followers_url":"https://api.github.com/users/osirisinferi/followers","following_url":"https://api.github.com/users/osirisinferi/following{/other_user}","gists_url":"https://api.github.com/users/osirisinferi/gists{/gist_id}","starred_url":"https://api.github.com/users/osirisinferi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osirisinferi/subscriptions","organizations_url":"https://api.github.com/users/osirisinferi/orgs","repos_url":"https://api.github.com/users/osirisinferi/repos","events_url":"https://api.github.com/users/osirisinferi/events{/privacy}","received_events_url":"https://api.github.com/users/osirisinferi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/labels/apache","name":"apache","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"joohoi","id":5235109,"avatar_url":"https://avatars.githubusercontent.com/u/5235109?v=3","gravatar_id":"","url":"https://api.github.com/users/joohoi","html_url":"https://github.com/joohoi","followers_url":"https://api.github.com/users/joohoi/followers","following_url":"https://api.github.com/users/joohoi/following{/other_user}","gists_url":"https://api.github.com/users/joohoi/gists{/gist_id}","starred_url":"https://api.github.com/users/joohoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joohoi/subscriptions","organizations_url":"https://api.github.com/users/joohoi/orgs","repos_url":"https://api.github.com/users/joohoi/repos","events_url":"https://api.github.com/users/joohoi/events{/privacy}","received_events_url":"https://api.github.com/users/joohoi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/milestones/15","html_url":"https://github.com/letsencrypt/letsencrypt/milestones/0.3.0","labels_url":"https://api.github.com/repos/letsencrypt/letsencrypt/milestones/15/labels","id":1505957,"number":15,"title":"0.3.0","description":"In this release we will sign the new le-auto (#1665) to make it work in the field but (at least at first) not deploy it to mainstream users.","creator":{"login":"pde","id":479213,"avatar_url":"https://avatars.githubusercontent.com/u/479213?v=3","gravatar_id":"","url":"https://api.github.com/users/pde","html_url":"https://github.com/pde","followers_url":"https://api.github.com/users/pde/followers","following_url":"https://api.github.com/users/pde/following{/other_user}","gists_url":"https://api.github.com/users/pde/gists{/gist_id}","starred_url":"https://api.github.com/users/pde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pde/subscriptions","organizations_url":"https://api.github.com/users/pde/orgs","repos_url":"https://api.github.com/users/pde/repos","events_url":"https://api.github.com/users/pde/events{/privacy}","received_events_url":"https://api.github.com/users/pde/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2016-01-13T23:51:16Z","updated_at":"2016-01-19T23:25:30Z","due_on":"2016-01-21T08:00:00Z","closed_at":null},"comments":12,"created_at":"2016-01-18T00:36:41Z","updated_at":"2016-01-20T22:06:33Z","closed_at":null,"body":"Hi,\r\n\r\nFor some reason, my Apache plugin broke since I updated everything to the latest Git versions (ACME, letsencrypt and letsencrypt-apache), commit 10214e2.\r\n\r\nI already had a certificate for the domain, but when I say  \"Attempt to reinstall\" when asked, I get the following error:\r\n\r\n    Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 1\r\n    2016-01-18 01:17:25,897:INFO:letsencrypt_apache.configurator:Created an SSL vhost at /etc/apache2/vhosts.d/vhosts/le-test-05.example.com-le-ssl.conf\r\n    2016-01-18 01:17:25,979:DEBUG:letsencrypt.reverter:Creating backup of /etc/apache2/vhosts.d/vhosts/le-test-05.example.com-le-ssl.conf\r\n    2016-01-18 01:17:26,135:WARNING:letsencrypt_apache.configurator:Cannot find a cert or key directive in /files/etc/apache2/vhosts.d/vhosts/le-test-05.example.com-le-ssl.conf/IfModule/VirtualHost. VirtualHost was not modified\r\n    2016-01-18 01:17:26,136:DEBUG:letsencrypt.error_handler:Encountered exception:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt/client.py\", line 375, in deploy_certificate\r\n        fullchain_path=fullchain_path)\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt_apache/configurator.py\", line 236, in deploy_cert\r\n        \"Unable to find cert and/or key directives\")\r\n    PluginError: Unable to find cert and/or key directives\r\n\r\n    2016-01-18 01:17:26,137:DEBUG:letsencrypt.error_handler:Calling registered functions\r\n    2016-01-18 01:17:26,139:DEBUG:letsencrypt.cli:Exiting abnormally:\r\n    Traceback (most recent call last):\r\n      File \"/usr/lib/python-exec/python2.7/letsencrypt\", line 9, in <module>\r\n        load_entry_point('letsencrypt==0.2.0.dev0', 'console_scripts', 'letsencrypt')()\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt/cli.py\", line 1398, in main\r\n        return args.func(args, config, plugins)\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt/cli.py\", line 563, in run\r\n        lineage.chain, lineage.fullchain)\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt/client.py\", line 375, in deploy_certificate\r\n        fullchain_path=fullchain_path)\r\n      File \"/usr/lib64/python2.7/site-packages/letsencrypt_apache/configurator.py\", line 236, in deploy_cert\r\n        \"Unable to find cert and/or key directives\")\r\n    PluginError: Unable to find cert and/or key directives\r\n\r\n    Unable to find cert and/or key directives\r\n\r\nI find this very strange, as the content of the original `.conf` is just this:\r\n\r\n    <VirtualHost *:80>\r\n    Servername le-test-05.example.com\r\n    DocumentRoot /var/www/vhosts/le-test-05.example.com/htdocs/\r\n    </VirtualHost>\r\n\r\nI've put *many* debug messages extra in `letsencrypt_apache/configurator.py`, `letsencrypt_apache/parser.py` and I think even in the Augeas python files, but to no succes.\r\n\r\nThe client successfully transforms the `.conf` file to the `-le-ssl.conf` file, i.e., add an `<IfModule>`, transform `*:80` into `*:443` and add the `SSLCertificateFile`, `SSLCertificateKey` (set to the temporary `insert_cert_file_path` and `insert_key_file_path` values resp.) and the `Include` to the basic LE option file.\r\n\r\nUnfortunately, even with the mock directives added by `_add_dummy_ssl_directives()`, for some reason the `self.parser.find_dir(\"SSLCertificateFile\", None, vhost.path)` command in `deploy_cert()` fails.. And I have no clue why. It is there.. It should be found by `find_dir()`. Augeas just added them!\r\n\r\nAny clue/hints how I could debug this any further?"},"comment":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/comments/173377026","html_url":"https://github.com/letsencrypt/letsencrypt/issues/2216#issuecomment-173377026","issue_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/2216","id":173377026,"user":{"login":"joohoi","id":5235109,"avatar_url":"https://avatars.githubusercontent.com/u/5235109?v=3","gravatar_id":"","url":"https://api.github.com/users/joohoi","html_url":"https://github.com/joohoi","followers_url":"https://api.github.com/users/joohoi/followers","following_url":"https://api.github.com/users/joohoi/following{/other_user}","gists_url":"https://api.github.com/users/joohoi/gists{/gist_id}","starred_url":"https://api.github.com/users/joohoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joohoi/subscriptions","organizations_url":"https://api.github.com/users/joohoi/orgs","repos_url":"https://api.github.com/users/joohoi/repos","events_url":"https://api.github.com/users/joohoi/events{/privacy}","received_events_url":"https://api.github.com/users/joohoi/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T22:06:33Z","updated_at":"2016-01-20T22:06:33Z","body":"Ok, great!"}}