{"id":13,"date":"2013-04-06T15:59:33","date_gmt":"2013-04-06T15:59:33","guid":{"rendered":"http:\/\/brew.outofadjectives.org\/?p=13"},"modified":"2013-04-06T15:59:33","modified_gmt":"2013-04-06T15:59:33","slug":"securing-this-with-ssl","status":"publish","type":"post","link":"http:\/\/brew.outofadjectives.org\/?p=13","title":{"rendered":"Securing this with SSL"},"content":{"rendered":"<p>Time to apply some proper certificates via good &#8216;ol StartSSL. After validating the domain via email, I need an SSL\/TLS certificate. I generate my own signing request:<\/p>\n<pre># cd \/etc\/ssl\/\n# openssl req -new -newkey rsa:2048 -nodes -keyout outofadjectives.org.key -out outofadjectives.org.csr<\/pre>\n<p>Just copy\/paste the CSR and finish up the StartSSL wizard and copy\/paste the resulting key into a .crt file. It corresponds with the previously generated .key.<\/p>\n<p>The <a href=\"https:\/\/www.startssl.com\/?app=42\">nginx instructions<\/a> are the most straightforward. The unified certificate format makes configuration for everything else simpler since there are no chain files to deal with. The password step might not be necessary depending whether you used a password with the CSR.<\/p>\n<p>To use the certificate in Dovecot, edit \/etc\/dovecot\/conf.d\/10-ssl.conf so <strong>ssl_cert<\/strong> points at the unified certificate file and <strong>ssl_key<\/strong> points at the .key file. Then restart the service.<\/p>\n<p>For Postfix, edit \/etc\/postfix\/main.cf so that <strong>smtpd_tls_cert_file<\/strong> and <strong>smtp_tls_cert_file<\/strong> both point at the unified certificate file and <strong>smtpd_tls_key_file<\/strong> and <strong>smtp_tls_key_file<\/strong> both point at the .key file. The &#8220;smtp_&#8221; settings may not exist by default. Again, restart the service.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to apply some proper certificates via good &#8216;ol StartSSL. After validating the domain via email, I need an SSL\/TLS certificate. I generate my own signing request: # cd \/etc\/ssl\/ # openssl req -new -newkey rsa:2048 -nodes -keyout outofadjectives.org.key -out &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/brew.outofadjectives.org\/?p=13\">Continue reading &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=\/wp\/v2\/posts\/13"}],"collection":[{"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=13"}],"version-history":[{"count":0,"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=\/wp\/v2\/posts\/13\/revisions"}],"wp:attachment":[{"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/brew.outofadjectives.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}