{"id":629,"date":"2019-02-18T18:01:37","date_gmt":"2019-02-18T15:01:37","guid":{"rendered":"https:\/\/artem.services\/?p=623"},"modified":"2020-03-12T23:59:41","modified_gmt":"2020-03-12T20:59:41","slug":"nginx-ssl-a-2","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=629&lang=en","title":{"rendered":"Nginx &#8212; SSL A+"},"content":{"rendered":"<p>To enhance cryptography, you must use the <strong>Diffie-Hellman<\/strong> parameter file with a length of at least <strong>4096<\/strong> bits.<\/p>\n<p>Let&#8217;s create a file like this:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nopenssl dhparam -out \/etc\/nginx\/ssl-dhparams.pem 4096\r\n<\/pre>\n<p>Will be added to the <strong>Nginx<\/strong> config file:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n    ssl_prefer_server_ciphers on;\r\n    ssl_session_cache shared:TLS:2m;\r\n    ssl_session_timeout 2m;\r\n    ssl_buffer_size 4k;\r\n    ssl_dhparam \/etc\/nginx\/ssl-dhparams.pem;\r\n    ssl_protocols TLSv1.3 TLSv1.2;\r\n    ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;\r\n\r\n    add_header Strict-Transport-Security 'max-age=31536000; includeSubDomains';\r\n<\/pre>\n<p>You can use the following service to check:<a href=\"https:\/\/www.ssllabs.com\" target=\"_blank\" rel=\"noopener noreferrer\"> ssllabs.com<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To enhance cryptography, you must use the Diffie-Hellman parameter file with a length of at least 4096 bits. Let&#8217;s create a file like this: Will be added to the Nginx config file: You can use the following service to check: ssllabs.com<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[341],"tags":[343,345,347],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/629"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=629"}],"version-history":[{"count":6,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions"}],"predecessor-version":[{"id":1655,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/629\/revisions\/1655"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}