{"id":8,"date":"2009-12-07T16:37:26","date_gmt":"2009-12-07T22:37:26","guid":{"rendered":"https:\/\/www.tavshed.com\/?p=8"},"modified":"2010-04-26T21:44:39","modified_gmt":"2010-04-27T03:44:39","slug":"using-a-godaddy-ssl-certificate-with-openfire-on-debian","status":"publish","type":"post","link":"https:\/\/www.tavshed.com\/?p=8","title":{"rendered":"Using a GoDaddy SSL Certificate with Openfire on Debian"},"content":{"rendered":"<p>1.\u00a0 Copy your key and cert to the \/etc\/openfire\/security directory on the server<br \/>\ncertkey.com.key<br \/>\ncertpub.com.crt<\/p>\n<p>2.\u00a0 cd \/etc\/openfire\/security<\/p>\n<p>3.\u00a0 Convert your key and cert to DER format in the root directory:<\/p>\n<p>openssl pkcs8 -topk8 -nocrypt -in certkey.com.key -inform PEM -out certkey.key.der -outform DER<br \/>\nopenssl x509 -in certpub.com.crt -inform PEM -out certpub.com.crt.der -outform DER<\/p>\n<p>4.\u00a0 Get some java utilities and place in the \/etc\/openfire\/security directory to create a java key store from AgentBob<br \/>\nhttp:\/\/www.agentbob.info\/agentbob\/79.html<br \/>\nImportKey.java, ImportKey.class<\/p>\n<p>5.\u00a0 Stop Openfire<br \/>\n\/etc\/init.d\/openfire stop<\/p>\n<p>6.\u00a0 Backup your existing keystore<br \/>\nmv keystore keystore.old<\/p>\n<p>7.\u00a0 Create a new keystore (in root directory keystore.ImportKey):<br \/>\njava ImportKey certkey.com.key.der certpub.com.crt.der<\/p>\n<p>8.\u00a0 Change the keytool passwords back to the defaults (from \u2018importkey\u2019 to \u2018changeit\u2019)<br \/>\nkeytool -storepasswd -keystore \/root\/keystore.ImportKey<br \/>\nkeytool -keypasswd -alias importkey -keystore \/root\/keystore.ImportKey<\/p>\n<p>9.\u00a0 Download the the GoDaddy Intermediate Certificate to the \/etc\/openfire\/security directory<br \/>\nwget \u2013no-check-certificate https:\/\/certificates.godaddy.com\/repository\/sf_issuing.crt into the<br \/>\nkeytool -import -alias intermed -file sf_issuing.crt -keystore \/root\/keystore.ImportKey -storepass changeit -trustcacerts<\/p>\n<p>10.\u00a0 Move the keystore to \/etc\/openfire\/security<br \/>\nmv \/root\/keystore.ImportKey \/etc\/openfire\/security\/keystore<\/p>\n<p>11.\u00a0 Start Openfire<br \/>\n\/etc\/init.d\/openfire start<\/p>\n<p>Special thanks to http:\/\/www.lovelysystems.com\/importing-an-existing-ssl-certificate-to-openfire\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u00a0 Copy your key and cert to the \/etc\/openfire\/security directory on the server certkey.com.key certpub.com.crt 2.\u00a0 cd \/etc\/openfire\/security 3.\u00a0 Convert your key and cert to DER format in the root directory: openssl pkcs8 -topk8 -nocrypt -in certkey.com.key -inform PEM -out certkey.key.der -outform DER openssl x509 -in certpub.com.crt -inform PEM -out certpub.com.crt.der -outform DER 4.\u00a0 Get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,11,3],"tags":[26,42,24,41,25],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-debian","category-godaddy-ssl-certificate","category-openfire","tag-cert","tag-debian","tag-godaddy","tag-openfire","tag-ssl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2lczV-8","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":10,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":64,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions\/64"}],"wp:attachment":[{"href":"https:\/\/www.tavshed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tavshed.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}