{"id":184,"date":"2015-01-05T14:18:14","date_gmt":"2015-01-05T14:18:14","guid":{"rendered":"http:\/\/www.busted.dk\/blog\/?p=184"},"modified":"2025-03-11T13:29:13","modified_gmt":"2025-03-11T11:29:13","slug":"convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation","status":"publish","type":"post","link":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/","title":{"rendered":"How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation"},"content":{"rendered":"<p><strong>How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation<\/strong><\/p>\n<p>Install the required programs:<\/p>\n<ol>\n<li>Download one of the win32 light OpenSSL: <a href=\"https:\/\/slproweb.com\/products\/Win32OpenSSL.html\">https:\/\/slproweb.com\/products\/Win32OpenSSL.html<\/a><\/li>\n<li>Install it.<\/li>\n<li>Make sure \u201dVisual C++ 2008 Redistributables\u201d is installed.<\/li>\n<\/ol>\n<p>This version of OpenSSL requires a &#8220;openssl.cnf&#8221; configuration file:<\/p>\n<ol>\n<li>Download <a href=\"http:\/\/www.tbs-certificats.com\/openssl-dem-server-cert-thvs.cnf\">http:\/\/www.tbs-certificats.com\/openssl-dem-server-cert-thvs.cnf<\/a> and rename it to \u201copenssl.cnf\u201d and save it in C:\\OpenSSL-Win32\\<\/li>\n<li>Start a CMD, \u00a0go to c:\\OpenSSL-Win32\\bin\u00a0and enter: \u201cset OPENSSL_CONF=c:\\OpenSSL-Win32\\openssl.cnf\u201d<\/li>\n<\/ol>\n<p>Convert the file:<\/p>\n<ol>\n<li>Copy the .pxf certificate file to c:\\OpenSSL-Win32\\bin<\/li>\n<li>In CMD go to c:\\OpenSSL-Win32\\bin<\/li>\n<li>Type: openssl pkcs12 -in <em>certname.pfx\u00a0\u2013nodes<\/em> -nocerts -out key.key<\/li>\n<li>Type: openssl pkcs12 -in <em>certname.pfx<\/em> -nokeys -out certificate.crt<\/li>\n<\/ol>\n<p>Clean the files:<\/p>\n<ol>\n<li>Open key.key in Wordpad or Notepad++ (NOT Notepad)<\/li>\n<li>Remove everything before &#8212;&#8211;BEGIN CERTIFICATE&#8212;&#8211; and everything after &#8212;&#8211;END CERTIFICATE&#8212;&#8211;<\/li>\n<li>Do the same for certificate.crt<\/li>\n<\/ol>\n<p>You can now import the two files in your\u00a0Synology Diskstation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation Install the required programs: Download one of the win32 light OpenSSL: https:\/\/slproweb.com\/products\/Win32OpenSSL.html Install it. Make sure \u201dVisual C++ 2008 Redistributables\u201d is installed. This version of OpenSSL requires a &#8220;openssl.cnf&#8221; configuration file: Download http:\/\/www.tbs-certificats.com\/openssl-dem-server-cert-thvs.cnf and rename &#8230; <a title=\"How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation\" class=\"read-more\" href=\"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/\" aria-label=\"Read more about How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation - Peter Busted<\/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:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/\" \/>\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\":\"Article\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/\"},\"author\":{\"name\":\"Peter\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"headline\":\"How to convert a PFX certificate to a separate .key\\\/.crt file so it can be used in an Synology Diskstation\",\"datePublished\":\"2015-01-05T14:18:14+00:00\",\"dateModified\":\"2025-03-11T11:29:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/\"},\"wordCount\":194,\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/\",\"name\":\"How to convert a PFX certificate to a separate .key\\\/.crt file so it can be used in an Synology Diskstation - Peter Busted\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\"},\"datePublished\":\"2015-01-05T14:18:14+00:00\",\"dateModified\":\"2025-03-11T11:29:13+00:00\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.busted.dk\\\/blog\\\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/\",\"name\":\"Peter Busted\",\"description\":\"A blog about my daily work with tech and more, running since 2008\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/#\\\/schema\\\/person\\\/6f1b95dddb508da8b018577701c33c9d\",\"name\":\"Peter\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"contentUrl\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\",\"width\":1790,\"height\":357,\"caption\":\"Peter\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp\"},\"url\":\"https:\\\/\\\/www.busted.dk\\\/blog\\\/author\\\/peter\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation - Peter Busted","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:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/","twitter_misc":{"Written by":"Peter","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/#article","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/"},"author":{"name":"Peter","@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"headline":"How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation","datePublished":"2015-01-05T14:18:14+00:00","dateModified":"2025-03-11T11:29:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/"},"wordCount":194,"publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/","url":"https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/","name":"How to convert a PFX certificate to a separate .key\/.crt file so it can be used in an Synology Diskstation - Peter Busted","isPartOf":{"@id":"https:\/\/www.busted.dk\/blog\/#website"},"datePublished":"2015-01-05T14:18:14+00:00","dateModified":"2025-03-11T11:29:13+00:00","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.busted.dk\/blog\/convert-pfx-certificate-separate-key-crt-file-can-used-synology-diskstation\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.busted.dk\/blog\/#website","url":"https:\/\/www.busted.dk\/blog\/","name":"Peter Busted","description":"A blog about my daily work with tech and more, running since 2008","publisher":{"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.busted.dk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.busted.dk\/blog\/#\/schema\/person\/6f1b95dddb508da8b018577701c33c9d","name":"Peter","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","url":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","contentUrl":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp","width":1790,"height":357,"caption":"Peter"},"logo":{"@id":"https:\/\/www.busted.dk\/blog\/wp-content\/uploads\/2025\/03\/cropped-f819f80c-bdd3-4653-87cc-89c692229010.webp"},"url":"https:\/\/www.busted.dk\/blog\/author\/peter\/"}]}},"_links":{"self":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":4,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"predecessor-version":[{"id":213,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/posts\/184\/revisions\/213"}],"wp:attachment":[{"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.busted.dk\/blog\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}