{"id":59,"date":"2007-04-20T11:55:31","date_gmt":"2007-04-20T10:55:31","guid":{"rendered":"http:\/\/www.treg.be\/blog\/index.php\/2007\/04\/20\/openvpn-pkcs12-key-conversion\/"},"modified":"2007-12-26T09:36:57","modified_gmt":"2007-12-26T08:36:57","slug":"openvpn-pkcs12-key-conversion","status":"publish","type":"post","link":"https:\/\/www.treg.be\/blog\/2007\/04\/openvpn-pkcs12-key-conversion\/","title":{"rendered":"OpenVPN pkcs12 key conversion"},"content":{"rendered":"<p>Since the latest network-manager-openvpn doens&#8217;t support pkcs12 certs, I needed to convert the pkcs12 key into other keys. This is how I managed to do it.<\/p>\n<p>Extract CA cert, client cert and private key to a single PEM file<br \/>\n&gt; openssl <span class=\"highlight\">pkcs12<\/span> -in client.p12 -out client.pem<\/p>\n<p><span class=\"highlight\"><\/span>Extract client cert to client.cer (no private key or CA cert)<br \/>\n&gt; openssl <span class=\"highlight\">pkcs12<\/span> -in client.p12 -out client.crt -clcerts -nokeys<\/p>\n<p>Extract client private key to client.key (no certs)<br \/>\n&gt; openssl <span class=\"highlight\">pkcs12<\/span> -in client.p12 -out client.key -nocerts<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the latest network-manager-openvpn doens&#8217;t support pkcs12 certs, I needed to convert the pkcs12 key into other keys. This is how I managed to do it. Extract CA cert, client cert and private key to a single PEM file &gt; openssl pkcs12 -in client.p12 -out client.pem Extract client cert to client.cer (no private key or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[4,3,8,7],"tags":[],"class_list":["post-59","post","type-post","status-publish","format-standard","hentry","category-ubuntu","category-howtos","category-linux","category-tech"],"_links":{"self":[{"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/posts\/59","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/comments?post=59"}],"version-history":[{"count":0,"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/posts\/59\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/media?parent=59"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/categories?post=59"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.treg.be\/blog\/wp-json\/wp\/v2\/tags?post=59"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}