{"id":46,"date":"2019-07-19T08:43:01","date_gmt":"2019-07-19T06:43:01","guid":{"rendered":"https:\/\/kb.smalldata.ch\/?p=46"},"modified":"2023-10-25T10:44:54","modified_gmt":"2023-10-25T08:44:54","slug":"pfx-mit-privat-key-umwandel","status":"publish","type":"post","link":"https:\/\/kb.smalldata.ch\/?p=46","title":{"rendered":"pfx umwandel"},"content":{"rendered":"\n<p>manchmal ist es n\u00f6tig aus einem pfx, welches aus privat key und zertifikat besteht, zwei einzelne files zu erstellen. z.b. ist das n\u00f6tig wenn man unter windows das zertifkat inkl. privat key exportiert und dass in citrix adc (netscaler) nutzen will<\/p>\n\n\n\n<p>dieser befehl exportiert dir das zertifikat aus dem pfx raus<br><code>openssl pkcs12 -in yourpfxfile.pfx -nokeys -out  yourpfxfile.cert.pem -legacy -nodes<\/code><\/p>\n\n\n\n<p>dieser befehl exportiert dir den privat key aus dem pfx raus<br><code>openssl pkcs12 -in yourpfxfile.pfx -nocerts -out  yourpfxfile.key.pem<code> -legacy<\/code> -nodes<\/code><\/p>\n\n\n\n<p>dieser befehl entfernt die das passwort f\u00fcr den privat key<br><code> openssl rsa -in yourpfxfile.key.pem -out yourpfxfile.key<\/code><br>der privat key ist nun nicht mehr passwortgesch\u00fctzt. \u00fcberlegt euch also 2x wo ihr das file ablegt!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>manchmal ist es n\u00f6tig aus einem pfx, welches aus privat key und zertifikat besteht, zwei einzelne files zu erstellen. z.b. ist das n\u00f6tig wenn man unter windows das zertifkat inkl. privat key exportiert und dass in citrix adc (netscaler) nutzen will dieser befehl exportiert dir das zertifikat aus dem pfx rausopenssl pkcs12 -in yourpfxfile.pfx -nokeys &#8230; <a title=\"pfx umwandel\" class=\"read-more\" href=\"https:\/\/kb.smalldata.ch\/?p=46\" aria-label=\"Read more about pfx umwandel\">mehr lesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"_links":{"self":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":7,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.smalldata.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}