{"id":605,"date":"2019-04-23T20:37:06","date_gmt":"2019-04-24T01:37:06","guid":{"rendered":"http:\/\/zewwy.ca\/?p=605"},"modified":"2019-04-23T20:37:06","modified_gmt":"2019-04-24T01:37:06","slug":"exporting-opnsense-haproxy-lets-encrypt-certificates","status":"publish","type":"post","link":"https:\/\/zewwy.ca\/index.php\/2019\/04\/23\/exporting-opnsense-haproxy-lets-encrypt-certificates\/","title":{"rendered":"Exporting OPNsense HAProxy Let&#8217;s Encrypt Certificates"},"content":{"rendered":"<p>You know&#8230; in case you need it for the backend service&#8230; or a front end IDS inspection&#8230; whatever suits your needs for the export.<\/p>\n<p>Step 1) Locate the Key and certificate, use the ACME logs!<\/p>\n<p>cat \/var\/log\/acme.sh.log | grep &#8220;Your cert&#8221;<\/p>\n<p>*No that is not a variable for your cert, actually use the line as is<\/p>\n<p>Step 2) Identify your Certificate and Key<\/p>\n<p>Step 3) run the openssl command to create your file:<\/p>\n<p><span class=\"crayon-e\">openssl <\/span><span class=\"crayon-v\">pkcs12<\/span><span class=\"crayon-h\"> <\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">export<\/span><span class=\"crayon-h\"> <\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">out <\/span><span class=\"crayon-v\">certificate<\/span><span class=\"crayon-e\">.pfx<\/span><span class=\"crayon-h\"> <\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">inkey <\/span><span class=\"crayon-v\">privateKey<\/span><span class=\"crayon-e\">.key<\/span><span class=\"crayon-h\"> <\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-st\">in<\/span><span class=\"crayon-h\"> <\/span><span class=\"crayon-v\">certificate<\/span><span class=\"crayon-e\">.crt<\/span><\/p>\n<p><a href=\"https:\/\/i.imgur.com\/uMrbgNa.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/i.imgur.com\/uMrbgNa.png\" alt=\"\" width=\"1452\" height=\"292\" \/><\/a><\/p>\n<p>Step 4) use WinSCP to copy your files to your workstation<\/p>\n<p>*Note use SFTP when connecting to OPNsense, for some reason SCP just no worky<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You know&#8230; in case you need it for the backend service&#8230; or a front end IDS inspection&#8230; whatever suits your needs for the export. Step 1) Locate the Key and certificate, use the ACME logs! cat \/var\/log\/acme.sh.log | grep &#8220;Your cert&#8221; *No that is not a variable for your cert, actually use the line as &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/zewwy.ca\/index.php\/2019\/04\/23\/exporting-opnsense-haproxy-lets-encrypt-certificates\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Exporting OPNsense HAProxy Let&#8217;s Encrypt Certificates&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[4,6,8],"tags":[188,189],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-infosec","category-networking","category-server-administration","tag-certificate","tag-export"],"_links":{"self":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/comments?post=605"}],"version-history":[{"count":1,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":606,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/posts\/605\/revisions\/606"}],"wp:attachment":[{"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/media?parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/categories?post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zewwy.ca\/index.php\/wp-json\/wp\/v2\/tags?post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}