<p>Creating new certificates Find the key file .</p>
<p>openssl genrsa -out filename.key 1024<br />
chmod 600 filename.key<br />
Create a CSR</p>
<p>openssl req -new -key filename.key -out filename.csr<br />
openssl x509 -req -days 730 -in filename.csr -signkey filename.key -out filename.crt</p>
<p>cat filename.key filename.crt > filename.pem<br />
chmod 600 filename.pem<br />
chown postfix filename.pem</p>


<div class="post-teaser-block"><a href="https://www.steflovi.cz/?p=1160" title="Odkaz : Postfix certifikát" rel="bookmark">Trvalý odkaz na tento příspěvek </a> (49 words, estimated 12  secs reading time)</div>{"id":1160,"date":"2015-01-31T23:13:56","date_gmt":"2015-01-31T21:13:56","guid":{"rendered":"http:\/\/www.steflovi.cz\/?p=1160"},"modified":"2015-01-31T23:13:56","modified_gmt":"2015-01-31T21:13:56","slug":"postfix-certifikat","status":"publish","type":"post","link":"https:\/\/www.steflovi.cz\/?p=1160","title":{"rendered":"Postfix certifik\u00e1t"},"content":{"rendered":"<p>Creating new certificates Find the key file .<\/p>\n<p>openssl genrsa -out filename.key 1024<br \/>\nchmod 600 filename.key<br \/>\nCreate a CSR<\/p>\n<p>openssl req -new -key filename.key -out filename.csr<br \/>\nopenssl x509 -req -days 730 -in filename.csr -signkey filename.key -out filename.crt<\/p>\n<p>cat filename.key filename.crt > filename.pem<br \/>\nchmod 600 filename.pem<br \/>\nchown postfix filename.pem<\/p>\n\n\n<div class=\"post-teaser-block\"><a href=\"https:\/\/www.steflovi.cz\/?p=1160\" title=\"Odkaz : Postfix certifik\u00e1t\" rel=\"bookmark\">Trval\u00fd odkaz na tento p\u0159\u00edsp\u011bvek <\/a> (49 words, estimated 12  secs reading time)<\/div>","protected":false},"excerpt":{"rendered":null,"protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=\/wp\/v2\/posts\/1160"}],"collection":[{"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1160"}],"version-history":[{"count":0,"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.steflovi.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}