{"action":"created","issue":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/718","labels_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/718/labels{/name}","comments_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/718/comments","events_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/718/events","html_url":"https://github.com/letsencrypt/letsencrypt/issues/718","id":103475066,"number":718,"title":"letsencrypt client and dealing with non-standard Nginx configurations","user":{"login":"centminmod","id":5899584,"avatar_url":"https://avatars.githubusercontent.com/u/5899584?v=3","gravatar_id":"","url":"https://api.github.com/users/centminmod","html_url":"https://github.com/centminmod","followers_url":"https://api.github.com/users/centminmod/followers","following_url":"https://api.github.com/users/centminmod/following{/other_user}","gists_url":"https://api.github.com/users/centminmod/gists{/gist_id}","starred_url":"https://api.github.com/users/centminmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/centminmod/subscriptions","organizations_url":"https://api.github.com/users/centminmod/orgs","repos_url":"https://api.github.com/users/centminmod/repos","events_url":"https://api.github.com/users/centminmod/events{/privacy}","received_events_url":"https://api.github.com/users/centminmod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-27T10:21:07Z","updated_at":"2015-08-29T05:57:39Z","closed_at":null,"body":"With the letsencrypt client I see you can pass specific Nginx `--nginx-server-root` and `--nginx-ctl1 parameters but I assume the tool has also made specific assumptions about where nginx vhost files will be located etc and the format they take ? For non-standard Nginx configurations what would I need to do ? Can I tell the letsscrypt client to look for my specific custom Nginx paths and locations ? or would I need to use standalone method and then script it to place the obtained SSL certs and files in my custom locations ?\r\n\r\nFor instance on my Centmin Mod LEMP stack and example `newdomain2.com`, my nginx SSL configuration is located at `/usr/local/nginx/conf/conf.d/newdomain2.com.ssl.conf` with install for Nginx at `/usr/local/nginx` and SSL certificates end up in directory at `/usr/local/nginx/conf/ssl/newdomain2.com`. Example of [how newdomain2.com Nginx vhost was generated](http://centminmod.com/http-public-key-pinning.html).\r\n\r\nBasically, I am looking to integrate letsencrypt into my Nginx vhost creation routine :)\r\n\r\nthanks\r\n\r\nGeorge\r\n\r\nhelp\r\n\r\n    letsencrypt --help nginx\r\n    usage: \r\n      letsencrypt [SUBCOMMAND] [options] [domains]\r\n    \r\n    The Let's Encrypt agent can obtain and install HTTPS/TLS/SSL certificates.  By\r\n    default, it will attempt to use a webserver both for obtaining and installing\r\n    the cert.  \r\n    \r\n    positional arguments:\r\n      SUBCOMMAND\r\n        run                 Obtain a certificate and install.\r\n        auth                Authenticate & obtain cert, but do not install it.\r\n        install             Install a previously obtained cert in a server.\r\n        revoke              Revoke a previously obtained certificate.\r\n        rollback            Rollback server configuration changes made during\r\n                            install.\r\n        config_changes      Show changes made to server config during installation\r\n        plugins             List server software plugins.\r\n    \r\n    optional arguments:\r\n      -h, --help            show this help message and exit\r\n      -c CONFIG_FILE, --config CONFIG_FILE\r\n                            config file path (default: None)\r\n    \r\n    nginx:\r\n      Nginx Web Server\r\n    \r\n      --nginx-server-root NGINX_SERVER_ROOT\r\n                            Nginx server root directory. (default: /etc/nginx)\r\n      --nginx-ctl NGINX_CTL\r\n                            Path to the 'nginx' binary, used for 'configtest' and\r\n                            retrieving nginx version number. (default: nginx)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/comments/135944731","html_url":"https://github.com/letsencrypt/letsencrypt/issues/718#issuecomment-135944731","issue_url":"https://api.github.com/repos/letsencrypt/letsencrypt/issues/718","id":135944731,"user":{"login":"centminmod","id":5899584,"avatar_url":"https://avatars.githubusercontent.com/u/5899584?v=3","gravatar_id":"","url":"https://api.github.com/users/centminmod","html_url":"https://github.com/centminmod","followers_url":"https://api.github.com/users/centminmod/followers","following_url":"https://api.github.com/users/centminmod/following{/other_user}","gists_url":"https://api.github.com/users/centminmod/gists{/gist_id}","starred_url":"https://api.github.com/users/centminmod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/centminmod/subscriptions","organizations_url":"https://api.github.com/users/centminmod/orgs","repos_url":"https://api.github.com/users/centminmod/repos","events_url":"https://api.github.com/users/centminmod/events{/privacy}","received_events_url":"https://api.github.com/users/centminmod/received_events","type":"User","site_admin":false},"created_at":"2015-08-29T05:57:39Z","updated_at":"2015-08-29T05:57:39Z","body":"not working or incorrect syntax ? on centos 6.7 with python 2.7\r\n\r\n    ./venv/bin/letsencrypt -d le1.http2ssl.xyz auth --nginx --nginx-server-root /usr/local/nginx --nginx-ctl nginx\r\n    usage: \r\n      letsencrypt [SUBCOMMAND] [options] [domains]\r\n    \r\n    The Let's Encrypt agent can obtain and install HTTPS/TLS/SSL certificates.  By\r\n    default, it will attempt to use a webserver both for obtaining and installing\r\n    the cert.  \r\n    letsencrypt: error: ambiguous option: --nginx could match --nginx-ctl, --nginx-server-root\r\n\r\nor\r\n\r\n    ./venv/bin/letsencrypt -d le1.http2ssl.xyz auth --nginx-server-root /usr/local/nginx --nginx-ctl nginx        \r\n    usage: \r\n      letsencrypt [SUBCOMMAND] [options] [domains]\r\n    \r\n    The Let's Encrypt agent can obtain and install HTTPS/TLS/SSL certificates.  By\r\n    default, it will attempt to use a webserver both for obtaining and installing\r\n    the cert.  \r\n    letsencrypt: error: unrecognized arguments: --nginx-server-root /usr/local/nginx --nginx-ctl nginx    "}}