{"id":239,"date":"2023-04-27T16:32:31","date_gmt":"2023-04-27T15:32:31","guid":{"rendered":"https:\/\/www.winni.at\/wordpress\/?p=239"},"modified":"2023-04-27T16:32:32","modified_gmt":"2023-04-27T15:32:32","slug":"openssl-strong-dhparam-key-in-ubuntu-and-nginx","status":"publish","type":"post","link":"https:\/\/www.winni.at\/wordpress\/?p=239","title":{"rendered":"OpenSSL strong DHparam key in Ubuntu and Nginx"},"content":{"rendered":"\n<p><strong>#Generate DH Key<\/strong><\/p>\n\n\n\n<p><strong>#\/etc\/ssl\/ is the directory of default certificates thats why i used this directory<\/strong><\/p>\n\n\n\n<p><strong>#this process can take some time (from minutes to hours!)<\/strong><\/p>\n\n\n\n<p>sudo openssl dhparam -out \/etc\/ssl\/private\/dhparams_4096.pem 4096<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>#Set the DH key Permissions<\/strong><\/p>\n\n\n\n<p>sudo chmod 640 \/etc\/ssl\/private\/dhparams_4096.pem<br>sudo chown root:root \/etc\/ssl\/private\/dhparams_4096.pem<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>#Add following line in NGINX config at \/etc\/nginx\/nginx.com in http section<\/strong><\/p>\n\n\n\n<p>ssl_dhparam \/etc\/ssl\/private\/dhparams_4096.pem;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#Generate DH Key #\/etc\/ssl\/ is the directory of default certificates thats why i used this directory #this process can take<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[3],"tags":[206,117,205,150,207,204,208],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-kb","tag-dhparam","tag-linux","tag-nginx","tag-openssl","tag-openssl-dhparam","tag-ubuntu","tag-ubuntu-nginx"],"_links":{"self":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":1,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":240,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions\/240"}],"wp:attachment":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}