{"id":238,"date":"2021-10-19T17:03:03","date_gmt":"2021-10-19T15:03:03","guid":{"rendered":"http:\/\/gbiondi.tech2.it\/?p=238"},"modified":"2021-10-19T17:03:03","modified_gmt":"2021-10-19T15:03:03","slug":"convertire-certificato-pfx-in-cer-key-per-linux","status":"publish","type":"post","link":"http:\/\/gbiondi.tech2.it\/index.php\/2021\/10\/19\/convertire-certificato-pfx-in-cer-key-per-linux\/","title":{"rendered":"Convertire certificato .pfx in cer + key per linux"},"content":{"rendered":"\n<ol class=\"wp-block-list\"><li>openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key]<\/li><\/ol>\n\n\n\n<p>openssl pkcs12 -in [yourfile.pfx] -nocerts -nodes -out [keyfile-encrypted.key]\u00a0# <strong>use this command if the first command generates empty certificate.<\/strong><\/p>\n\n\n\n<p>2. openssl rsa -in [keyfile-encrypted.key] -out server.key<\/p>\n\n\n\n<p>3. openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out server.crt<\/p>\n\n\n\n<p>4. openssl pkcs12 -in [certificate.pfx] -cacerts -nokeys -out [server-ca.crt]<\/p>\n\n\n\n<p>5. openssl pkcs7\u00a0-print_certs\u00a0-in [yourfile.p7b] -out server.crt  (OPZIONALE)<\/p>\n\n\n\n<p>A questo punto copiare il .cer in \/etc\/pki\/tls\/certs\/ e il .key in \/etc\/pki\/tls\/private\/<\/p>\n\n\n\n<p>Dopo puntare questi file come in esempio:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"646\" src=\"http:\/\/gbiondi.tech2.it\/wp-content\/uploads\/2021\/10\/image-7-1024x646.png\" alt=\"\" class=\"wp-image-239\" srcset=\"http:\/\/gbiondi.tech2.it\/wp-content\/uploads\/2021\/10\/image-7-1024x646.png 1024w, http:\/\/gbiondi.tech2.it\/wp-content\/uploads\/2021\/10\/image-7-300x189.png 300w, http:\/\/gbiondi.tech2.it\/wp-content\/uploads\/2021\/10\/image-7-768x485.png 768w, http:\/\/gbiondi.tech2.it\/wp-content\/uploads\/2021\/10\/image-7.png 1193w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key] openssl pkcs12 -in [yourfile.pfx] -nocerts -nodes -out [keyfile-encrypted.key]\u00a0# use this command if the first command generates empty certificate. 2. openssl rsa -in [keyfile-encrypted.key] -out server.key 3. openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out server.crt 4. openssl pkcs12 -in [certificate.pfx] -cacerts -nokeys -out [server-ca.crt] 5. openssl pkcs7\u00a0-print_certs\u00a0-in [yourfile.p7b] -out &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/gbiondi.tech2.it\/index.php\/2021\/10\/19\/convertire-certificato-pfx-in-cer-key-per-linux\/\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;Convertire certificato .pfx in cer + key per linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-238","post","type-post","status-publish","format-standard","hentry","category-senza-categoria"],"_links":{"self":[{"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/posts\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":1,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/posts\/238\/revisions"}],"predecessor-version":[{"id":240,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/posts\/238\/revisions\/240"}],"wp:attachment":[{"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/media?parent=238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/categories?post=238"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gbiondi.tech2.it\/index.php\/wp-json\/wp\/v2\/tags?post=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}