git clone <a href="https:&#x2F;&#x2F;github.com&#x2F;letsencrypt&#x2F;letsencrypt" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;letsencrypt&#x2F;letsencrypt</a>
cd letsencrypt&#x2F;
.&#x2F;letsencrypt-auto (ignore the &#x27;error&#x27;. It&#x27;s because you don&#x27;t run apache)<p>&#x2F;root&#x2F;.local&#x2F;share&#x2F;letsencrypt&#x2F;bin&#x2F;letsencrypt certonly --webroot -w &#x2F;var&#x2F;www&#x2F;example.com&#x2F;public -d www.example.com -d example.com   
(uses the public directory for ownership check, and creates a cert for www.example.com + example.com)<p>Then in your &#x2F;etc&#x2F;nginx&#x2F;sites-enabled&#x2F;example.com:<p>&#x2F;etc&#x2F;letsencrypt&#x2F;live&#x2F;www.example.com&#x2F;fullchain.pem;
&#x2F;etc&#x2F;letsencrypt&#x2F;live&#x2F;www.example.com&#x2F;privkey.pem;<p>Sorry.. you&#x27;re asking for automation