{"id":363,"date":"2025-11-01T01:16:26","date_gmt":"2025-10-31T23:16:26","guid":{"rendered":"https:\/\/dinodevs.com\/blog\/?p=363"},"modified":"2025-11-01T01:29:07","modified_gmt":"2025-10-31T23:29:07","slug":"synology-certificate","status":"publish","type":"post","link":"https:\/\/dinodevs.com\/blog\/synology-certificate\/","title":{"rendered":"Synology Certificate"},"content":{"rendered":"\n<p>A Synology NAS can be used as a home VPN server. It is easy to use and set up, making it ideal. But&#8230; since the certificates expire every year, you have to regenerate OVPN config files for your clients.<\/p>\n\n\n\n<p>Let&#8217;s change that by generating a custom, self-signed certificate and using it for our Synology services.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Generating a self-signed certificate<\/h2>\n\n\n\n<p>Let&#8217;s first generate the intermediate certificate:<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>openssl req -x509 -newkey rsa:4096 -nodes -days 36500 -keyout intermediate.key -out intermediate.crt -subj \"\/C=GR\/ST=Attica\/L=Athens\/O=None\/OU=None\/CN=Custom\"<\/code><\/pre>\n\n\n\n<p>Now let&#8217;s generate the normal certificate:<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>openssl req -newkey rsa:2048 -nodes -keyout nas.key -out nas.csr -subj \"\/C=GR\/ST=Attica\/L=Athens\/O=None\/OU=None\/CN=synology\" &amp;&amp; \\\nopenssl x509 -req -in nas.csr -CA intermediate.crt -CAkey intermediate.key -CAcreateserial -out nas.crt -days 36500 -sha256 -extfile &lt;(echo \"subjectAltName=DNS:synology\")<\/code><\/pre>\n\n\n\n<p>Finally, let&#8217;s update the certificate to include the intermediate certificate inside:<\/p>\n\n\n\n<pre class=\"wp-block-code language-bash\"><code>cat nas.crt intermediate.crt &gt; chain.crt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Import and Configure the certificate<\/h2>\n\n\n\n<p>Head to your Synology &#8220;Control Panel&#8221; &gt; &#8220;Security&#8221; and select the &#8220;Certificate&#8221; tab, then click the &#8220;Add&#8221; button. Follow the instructions and upload the <code>nas.key<\/code> as a Private Key, the <code>chain.crt<\/code> as Certificate and the <code>intermediate.crt<\/code> as Intermediate certificate.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"658\" height=\"556\" src=\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\" alt=\"\" class=\"wp-image-364\" srcset=\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png 658w, https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image-300x253.png 300w\" sizes=\"auto, (max-width: 658px) 100vw, 658px\" \/><\/figure>\n\n\n\n<p>After importing the certificate, click the &#8220;Settings&#8221; button and enable it for the services for which you want it to be used (e.g., FTPS, Synology Drive Server, Synology Storage Control Server, and VPN Server).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> Conclusion<\/h2>\n\n\n\n<p>Now (hopefully) we will not need to update our configurations every year&#8230; let&#8217;s see&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Synology NAS can be used as a home VPN server. It is easy to use and set up, making it ideal. But&#8230; since the certificates expire every year, you have to regenerate OVPN config files for your clients. Let&#8217;s change that by generating a custom, self-signed certificate and using it for our Synology services. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Synology Certificate - DinoDevs<\/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:\/\/dinodevs.com\/blog\/synology-certificate\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Synology Certificate - DinoDevs\" \/>\n<meta property=\"og:description\" content=\"A Synology NAS can be used as a home VPN server. It is easy to use and set up, making it ideal. But&#8230; since the certificates expire every year, you have to regenerate OVPN config files for your clients. Let&#8217;s change that by generating a custom, self-signed certificate and using it for our Synology services. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\" \/>\n<meta property=\"og:site_name\" content=\"DinoDevs\" \/>\n<meta property=\"article:published_time\" content=\"2025-10-31T23:16:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-31T23:29:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\" \/>\n\t<meta property=\"og:image:width\" content=\"658\" \/>\n\t<meta property=\"og:image:height\" content=\"556\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Athanasios Grammatopoulos\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Athanasios Grammatopoulos\" \/>\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\":\"Article\",\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\"},\"author\":{\"name\":\"Athanasios Grammatopoulos\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3\"},\"headline\":\"Synology Certificate\",\"datePublished\":\"2025-10-31T23:16:26+00:00\",\"dateModified\":\"2025-10-31T23:29:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\"},\"wordCount\":180,\"publisher\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\",\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\",\"url\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\",\"name\":\"Synology Certificate - DinoDevs\",\"isPartOf\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\",\"datePublished\":\"2025-10-31T23:16:26+00:00\",\"dateModified\":\"2025-10-31T23:29:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dinodevs.com\/blog\/synology-certificate\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage\",\"url\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\",\"contentUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png\",\"width\":658,\"height\":556},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dinodevs.com\/blog\/synology-certificate\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dinodevs.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Synology Certificate\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#website\",\"url\":\"https:\/\/dinodevs.com\/blog\/\",\"name\":\"DinoDevs\",\"description\":\"When in doubt, code it out.\",\"publisher\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dinodevs.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#organization\",\"name\":\"DinoDevs\",\"url\":\"https:\/\/dinodevs.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png\",\"contentUrl\":\"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png\",\"width\":600,\"height\":600,\"caption\":\"DinoDevs\"},\"image\":{\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3\",\"name\":\"Athanasios Grammatopoulos\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g\",\"caption\":\"Athanasios Grammatopoulos\"},\"sameAs\":[\"https:\/\/github.com\/GramThanos\"],\"url\":\"https:\/\/dinodevs.com\/blog\/author\/gramthanos\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Synology Certificate - DinoDevs","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:\/\/dinodevs.com\/blog\/synology-certificate\/","og_locale":"en_US","og_type":"article","og_title":"Synology Certificate - DinoDevs","og_description":"A Synology NAS can be used as a home VPN server. It is easy to use and set up, making it ideal. But&#8230; since the certificates expire every year, you have to regenerate OVPN config files for your clients. Let&#8217;s change that by generating a custom, self-signed certificate and using it for our Synology services. [&hellip;]","og_url":"https:\/\/dinodevs.com\/blog\/synology-certificate\/","og_site_name":"DinoDevs","article_published_time":"2025-10-31T23:16:26+00:00","article_modified_time":"2025-10-31T23:29:07+00:00","og_image":[{"width":658,"height":556,"url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png","type":"image\/png"}],"author":"Athanasios Grammatopoulos","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Athanasios Grammatopoulos","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#article","isPartOf":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/"},"author":{"name":"Athanasios Grammatopoulos","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3"},"headline":"Synology Certificate","datePublished":"2025-10-31T23:16:26+00:00","dateModified":"2025-10-31T23:29:07+00:00","mainEntityOfPage":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/"},"wordCount":180,"publisher":{"@id":"https:\/\/dinodevs.com\/blog\/#organization"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage"},"thumbnailUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png","inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/","url":"https:\/\/dinodevs.com\/blog\/synology-certificate\/","name":"Synology Certificate - DinoDevs","isPartOf":{"@id":"https:\/\/dinodevs.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage"},"thumbnailUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png","datePublished":"2025-10-31T23:16:26+00:00","dateModified":"2025-10-31T23:29:07+00:00","breadcrumb":{"@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dinodevs.com\/blog\/synology-certificate\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#primaryimage","url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png","contentUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/11\/image.png","width":658,"height":556},{"@type":"BreadcrumbList","@id":"https:\/\/dinodevs.com\/blog\/synology-certificate\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dinodevs.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Synology Certificate"}]},{"@type":"WebSite","@id":"https:\/\/dinodevs.com\/blog\/#website","url":"https:\/\/dinodevs.com\/blog\/","name":"DinoDevs","description":"When in doubt, code it out.","publisher":{"@id":"https:\/\/dinodevs.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dinodevs.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dinodevs.com\/blog\/#organization","name":"DinoDevs","url":"https:\/\/dinodevs.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png","contentUrl":"https:\/\/dinodevs.com\/blog\/wp-content\/uploads\/2025\/05\/dinodevs.cube_.png","width":600,"height":600,"caption":"DinoDevs"},"image":{"@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/fccac7bcc5374cede43de49a450dfaf3","name":"Athanasios Grammatopoulos","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dinodevs.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0271fabc59edad96ed659fb1a3c4caf867a7324609e22d0b2cc25ad71d4c0d8c?s=96&d=mm&r=g","caption":"Athanasios Grammatopoulos"},"sameAs":["https:\/\/github.com\/GramThanos"],"url":"https:\/\/dinodevs.com\/blog\/author\/gramthanos\/"}]}},"_links":{"self":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":3,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":368,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/posts\/363\/revisions\/368"}],"wp:attachment":[{"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dinodevs.com\/blog\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}