{"id":231,"date":"2024-03-31T17:49:55","date_gmt":"2024-03-31T15:49:55","guid":{"rendered":"https:\/\/networkdynamics.nl\/?p=231"},"modified":"2024-03-31T17:50:28","modified_gmt":"2024-03-31T15:50:28","slug":"zabbix-enable-ssl-on-web-frontend-nginx","status":"publish","type":"post","link":"https:\/\/networkdynamics.nl\/?p=231","title":{"rendered":"Zabbix: enable ssl on web-frontend (nginx)"},"content":{"rendered":"\n<p>This post is about to enable ssl on the Zabbix web-frontend. My server is running on the following components:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Debian 12 (bookworm)<\/li>\n\n\n\n<li>Zabbix Server version 6.4.13<\/li>\n\n\n\n<li>Webserver nginx\/1.22.1<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">step 1: create a self-signed certificate.<\/h2>\n\n\n\n<p>skip this step if you use a certificate signed by a (public) CA.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout \/etc\/ssl\/private\/nginx-selfsigned.key -out \/etc\/ssl\/certs\/nginx-selfsigned.crt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">step 2: define the locations for the cert-files<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/nginx\/snippets\/self-signed.conf<\/code><\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssl_certificate \/etc\/ssl\/certs\/nginx-selfsigned.crt;\nssl_certificate_key \/etc\/ssl\/private\/nginx-selfsigned.key;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">step 3: define ssl-parameters<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/nginx\/snippets\/ssl-params.conf\n<\/code><\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssl_protocols TLSv1.2;\nssl_prefer_server_ciphers on;\nssl_dhparam \/etc\/ssl\/certs\/dhparam.pem;\nssl_ciphers ECDHE-RSA-AES256-GCM-SHA512:DHE-RSA-AES256-GCM-SHA512:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384;\nssl_ecdh_curve secp384r1; # Requires nginx >= 1.1.0\nssl_session_timeout 10m;\nssl_session_cache shared:SSL:10m;\nssl_session_tickets off; # Requires nginx >= 1.5.9\n# ssl_stapling on; # Requires nginx >= 1.3.7\n# ssl_stapling_verify on; # Requires nginx => 1.3.7\nresolver 8.8.8.8 8.8.4.4 valid=300s;\nresolver_timeout 5s;\nadd_header X-Frame-Options DENY;\nadd_header X-Content-Type-Options nosniff;\nadd_header X-XSS-Protection \"1; mode=block\";<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">step 4: Generate the dhparam.pem file<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>openssl dhparam -out \/etc\/ssl\/certs\/dhparam.pem 2048<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">step 5: enable ssl in Zabbix config file<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/nginx\/conf.d\/zabbix.conf<\/code><\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">server {\n#       listen       8080;\n        listen       443 ssl;\n        server_name  server.example.com;\n        include      snippets\/self-signed.conf;\n        include      snippets\/ssl-params.conf;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">step 6: Restart NGINX<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl restart nginx<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post is about to enable ssl on the Zabbix web-frontend. My server is running on the following components: step 1: create a self-signed certificate. skip this step if you use a certificate signed by a (public) CA. step 2: define the locations for the cert-files step 3: define ssl-parameters step 4: Generate the dhparam.pem [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-zabbix"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/networkdynamics.nl\/?p=231\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es\" \/>\n<meta property=\"og:description\" content=\"This post is about to enable ssl on the Zabbix web-frontend. My server is running on the following components: step 1: create a self-signed certificate. skip this step if you use a certificate signed by a (public) CA. step 2: define the locations for the cert-files step 3: define ssl-parameters step 4: Generate the dhparam.pem [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/networkdynamics.nl\/?p=231\" \/>\n<meta property=\"og:site_name\" content=\"Pee.Bee.Es\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-31T15:49:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-31T15:50:28+00:00\" \/>\n<meta name=\"author\" content=\"peter\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"peter\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/networkdynamics.nl\/?p=231\",\"url\":\"https:\/\/networkdynamics.nl\/?p=231\",\"name\":\"Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es\",\"isPartOf\":{\"@id\":\"https:\/\/networkdynamics.nl\/#website\"},\"datePublished\":\"2024-03-31T15:49:55+00:00\",\"dateModified\":\"2024-03-31T15:50:28+00:00\",\"author\":{\"@id\":\"https:\/\/networkdynamics.nl\/#\/schema\/person\/950dc6fa890f7e89ca07f5219f910bfc\"},\"breadcrumb\":{\"@id\":\"https:\/\/networkdynamics.nl\/?p=231#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/networkdynamics.nl\/?p=231\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/networkdynamics.nl\/?p=231#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/networkdynamics.nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Zabbix: enable ssl on web-frontend (nginx)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/networkdynamics.nl\/#website\",\"url\":\"https:\/\/networkdynamics.nl\/\",\"name\":\"Pee.Bee.Es\",\"description\":\"A tiny blog with a bit of networking\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/networkdynamics.nl\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/networkdynamics.nl\/#\/schema\/person\/950dc6fa890f7e89ca07f5219f910bfc\",\"name\":\"peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/networkdynamics.nl\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/af489b1ac40f471a937d0df5a8250c4bd6798e691b989ac873e30b9a6323192b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/af489b1ac40f471a937d0df5a8250c4bd6798e691b989ac873e30b9a6323192b?s=96&d=mm&r=g\",\"caption\":\"peter\"},\"sameAs\":[\"http:\/\/networkdynamics.nl\"],\"url\":\"https:\/\/networkdynamics.nl\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/networkdynamics.nl\/?p=231","og_locale":"en_US","og_type":"article","og_title":"Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es","og_description":"This post is about to enable ssl on the Zabbix web-frontend. My server is running on the following components: step 1: create a self-signed certificate. skip this step if you use a certificate signed by a (public) CA. step 2: define the locations for the cert-files step 3: define ssl-parameters step 4: Generate the dhparam.pem [&hellip;]","og_url":"https:\/\/networkdynamics.nl\/?p=231","og_site_name":"Pee.Bee.Es","article_published_time":"2024-03-31T15:49:55+00:00","article_modified_time":"2024-03-31T15:50:28+00:00","author":"peter","twitter_card":"summary_large_image","twitter_misc":{"Written by":"peter","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/networkdynamics.nl\/?p=231","url":"https:\/\/networkdynamics.nl\/?p=231","name":"Zabbix: enable ssl on web-frontend (nginx) - Pee.Bee.Es","isPartOf":{"@id":"https:\/\/networkdynamics.nl\/#website"},"datePublished":"2024-03-31T15:49:55+00:00","dateModified":"2024-03-31T15:50:28+00:00","author":{"@id":"https:\/\/networkdynamics.nl\/#\/schema\/person\/950dc6fa890f7e89ca07f5219f910bfc"},"breadcrumb":{"@id":"https:\/\/networkdynamics.nl\/?p=231#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/networkdynamics.nl\/?p=231"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/networkdynamics.nl\/?p=231#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/networkdynamics.nl\/"},{"@type":"ListItem","position":2,"name":"Zabbix: enable ssl on web-frontend (nginx)"}]},{"@type":"WebSite","@id":"https:\/\/networkdynamics.nl\/#website","url":"https:\/\/networkdynamics.nl\/","name":"Pee.Bee.Es","description":"A tiny blog with a bit of networking","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/networkdynamics.nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/networkdynamics.nl\/#\/schema\/person\/950dc6fa890f7e89ca07f5219f910bfc","name":"peter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/networkdynamics.nl\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/af489b1ac40f471a937d0df5a8250c4bd6798e691b989ac873e30b9a6323192b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af489b1ac40f471a937d0df5a8250c4bd6798e691b989ac873e30b9a6323192b?s=96&d=mm&r=g","caption":"peter"},"sameAs":["http:\/\/networkdynamics.nl"],"url":"https:\/\/networkdynamics.nl\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231"}],"version-history":[{"count":14,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":245,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions\/245"}],"wp:attachment":[{"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/networkdynamics.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}