{"id":11,"date":"2016-08-15T06:18:34","date_gmt":"2016-08-15T06:18:34","guid":{"rendered":"http:\/\/www.f-bit.net\/?p=11"},"modified":"2018-11-12T21:18:12","modified_gmt":"2018-11-12T21:18:12","slug":"importing-a-preexisting-ssl-certificate-to-an-asa","status":"publish","type":"post","link":"https:\/\/www.f-bit.net\/?p=11","title":{"rendered":"Importing a preexisting SSL certificate to an ASA"},"content":{"rendered":"<p>Step 1: Export your certificate as, or convert it to, a pkcs12 format. If you need to do the latter, try:<\/p>\n<p>openssl pkcs12 -export -out &lt;pfx filename&gt; -inkey &lt;private key file&gt; -in &lt;public certificate file&gt; -certfile &lt;CA certificate bundle or intermediate certificate file used to sign your actual certificate&gt;<\/p>\n<p>Then you need to put it in base64 format to paste it in on the ASA CLI &#8211; copy\/paste the entire next line including parentheses to do it:<br \/>\n<code><br \/>\n( echo -----BEGIN PKCS12-----; openssl base64 -in &lt;pfx file&gt; ; echo -----END PKCS12-----; ) &gt; &lt;base64 file&gt;<br \/>\n<\/code><br \/>\n&nbsp;<\/p>\n<p>Step 2: Create a trustpoint on the ASA and import the certificate:<\/p>\n<p>crypto ca trustpoint &lt;trustpoint name&gt;<br \/>\nenrollment terminal<br \/>\nfqdn &lt;your anyconnect hostname here&gt;<br \/>\nexit<br \/>\ncrypto ca import &lt;trustpoint name&gt; pkcs12 &lt;export password&gt;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Export your certificate as, or convert it to, a pkcs12 format. If you need to do the latter, try: openssl pkcs12 -export -out &lt;pfx filename&gt; -inkey &lt;private key file&gt; -in &lt;public certificate file&gt; -certfile &lt;CA certificate bundle or intermediate certificate file used to sign your actual certificate&gt; Then you need to put it [&hellip;]<\/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-11","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/11","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11"}],"version-history":[{"count":4,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions"}],"predecessor-version":[{"id":35,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=\/wp\/v2\/posts\/11\/revisions\/35"}],"wp:attachment":[{"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.f-bit.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}