{"id":370,"date":"2013-06-30T16:00:46","date_gmt":"2013-07-01T00:00:46","guid":{"rendered":"http:\/\/unmitigatedrisk.com\/?p=370"},"modified":"2013-06-30T17:39:17","modified_gmt":"2013-07-01T01:39:17","slug":"how-to-build-your-own-openssl","status":"publish","type":"post","link":"https:\/\/unmitigatedrisk.com\/?p=370","title":{"rendered":"How to Build Your Own OpenSSL"},"content":{"rendered":"<p>So you have been reading all the press on forward secrecy and want to deploy it? But does your OpenSSL support it? Thankfully it is easy to tell, just run this command:<\/p>\n<pre>&gt; openssl ciphers<\/pre>\n<p>If you see ciphers like &#8220;ECDHE-RSA-AES256-GCM-SHA384&#8221; then you have a version of OpenSSL that was built with ECC and ECDHE support enabled which is required if you want forward secrecy today.<\/p>\n<p><span>So how do you go about doing this?\u00a0<\/span><span>Thankfully you don&#8217;t need to be a developer of cryptographer, with the following commands you should be able to get the latest (as of the time of this post) OpenSSL with ECC and ECDH enabled.<\/span><\/p>\n<pre style=\"padding-left: 30px;\">root&gt; cp \/usr\/bin\/openssl \/usr\/bin\/openssl.orig\r\nroot&gt; cd \/tmp\r\nroot&gt; wget http:\/\/www.openssl.org\/source\/openssl-1.0.1e.tar.gz\r\nroot&gt; tar -xvzf openssl-1.0.1e.tar.gz\r\nroot&gt; cd openssl-1.0.1e\r\nroot&gt; .\/config no-shared no-threads \r\nroot&gt; make depend\r\nroot&gt; make\r\nroot&gt; make install<\/pre>\n<p>You may also need to re-build your web server,you see even though the latest versions of Nginx and Apache include the necessary changes to enable ECDH if the version you are running was built against a version of OpenSSL that did not include support your going to have to rebuild it also. Here is a quick post on how to do that for <a href=\"http:\/\/unmitigatedrisk.com\/?p=371\">Nginx<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p>Good luck!<\/p>\n<p>&nbsp;<\/p>\n<p>Ryan<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you have been reading all the press on forward secrecy and want to deploy it? But does your OpenSSL support it? Thankfully it is easy to tell, just run this command: &gt; openssl ciphers If you see ciphers like &#8220;ECDHE-RSA-AES256-GCM-SHA384&#8221; then you have a version of OpenSSL that was built with ECC and ECDHE [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[12,3],"tags":[22,170,168],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-programming","category-security","tag-openssl","tag-programming","tag-security"],"_links":{"self":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":0,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"wp:attachment":[{"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unmitigatedrisk.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}