{"id":185,"date":"2019-03-13T17:00:23","date_gmt":"2019-03-13T17:00:23","guid":{"rendered":"https:\/\/www.huerter.me\/?p=185"},"modified":"2019-03-13T13:10:54","modified_gmt":"2019-03-13T13:10:54","slug":"howto-konvertieren-von-pfx-zu-crt-cert","status":"publish","type":"post","link":"https:\/\/www.huerter.me\/index.php\/2019\/03\/13\/howto-konvertieren-von-pfx-zu-crt-cert\/","title":{"rendered":"HowTo: Konvertieren von pfx zu crt\/cert"},"content":{"rendered":"<p>Da \u00f6fter mal Zertifikate in den Arten umgewandelt werden m\u00fcssen, kommt es \u00f6fter mal vor, dass Zertifikate von PFX (Windows) in cert\/key Dateien umgewandelt werden m\u00fcssen.<\/p>\n<p><strong>Export Zertifikate (cer) aus pfx:<\/strong><\/p>\n<pre class=\"lang:addlightplain\">openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.crt<\/pre>\n<p class=\"p1\"><strong>Export Key aus pfx:<\/strong><\/p>\n<pre class=\"lang:addlightplain\">openssl pkcs12 -in cert.pfx -nocerts -out cert_crypted.key\r\n\r\nopenssl rsa -in cert_crypted.key -out cert.key<\/pre>\n<p>Der erste Befehl exportiert den Schl\u00fcssel passwortgesch\u00fctzt (passphrase), der zweite entfernt das Kennwort. Gerade in Verbindung mit einem webserver (Apache\/Nginx) sollte das Kennwort entfernt werden.<\/p>\n<p>Umwandlung cert\/key zu pfx [HowTo:\u00a0<a href=\"https:\/\/www.huerter.me\/index.php\/2019\/03\/02\/howto-konvertieren-von-crt-cert-zu-pfx\/\">cert to pfx<\/a>]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Da \u00f6fter mal Zertifikate in den Arten umgewandelt werden m\u00fcssen, kommt es \u00f6fter mal vor, dass Zertifikate von PFX (Windows) in cert\/key Dateien umgewandelt werden m\u00fcssen. Export Zertifikate (cer) aus pfx: openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.crt Export Key aus pfx: openssl pkcs12 -in cert.pfx -nocerts -out cert_crypted.key openssl rsa -in cert_crypted.key -out [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":3,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.huerter.me\/index.php\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}