{"id":1838,"date":"2012-05-18T09:52:26","date_gmt":"2012-05-18T09:52:26","guid":{"rendered":"http:\/\/www.mjtnet.com\/blog\/?p=1838"},"modified":"2012-05-18T09:53:09","modified_gmt":"2012-05-18T09:53:09","slug":"how-to-do-an-https-request-without-installing-all-of-openssl","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2012\/05\/18\/how-to-do-an-https-request-without-installing-all-of-openssl\/","title":{"rendered":"How to do an HTTPS Request Without Installing all of OpenSSL"},"content":{"rendered":"<p>I recently wrote a small macro for a customer which does an HTTPRequest via SSL.  This requires that OpenSSL is installed.  But the customer wanted to know if there was any way of distributing the macro to his users without having to install OpenSSL on all their PCs.<\/p>\n<p>Thanks to our <a href=\"http:\/\/www.mjtnet.com\/usergroup\/\">wonderful forums<\/a> one of our users has <a href=\"https:\/\/www.mjtnet.com\/usergroup\/possible-to-get-https-request-in-a-compiled-macro-t6659.html\">already figured out how to do this<\/a> and it turns out only 2 DLLs are required and can be placed in either the Macro Scheduler program folder, or, in the case of a compiled macro, the exe&#8217;s folder.<\/p>\n<p><a href=\"https:\/\/www.mjtnet.com\/usergroup\/member471.html\">Adroege<\/a> says:<\/p>\n<blockquote><p>I use this solution:<\/p>\n<p>Download the &#8220;binaries&#8221; from this page as a zip file<br \/>\nhttp:\/\/gnuwin32.sourceforge.net\/packages\/openssl.htm<\/p>\n<p>Unzip the contents<\/p>\n<p>find the files libeay32.dll (version 0.9.8.8) and libssl32.dll<br \/>\n(version 0.9.8.8) in the Bin folder<\/p>\n<p>Make a copy of libssl32.dll and call it &#8220;ssleay32.dll&#8221;<\/p>\n<p>Now just deliver all 3 DLL files in the same folder as the<br \/>\ncompiled Macro Scheduler EXE<br \/>\n(libeay32.dll     libssl32.dll     ssleay32.dll)<\/p>\n<p>Using this method, I didn&#8217;t have to do any special SSL &#8220;install&#8221;,<br \/>\nrun regsvr32.exe, or do any registry hacks.  It just works.<\/p><\/blockquote>\n<p>And <a href=\"https:\/\/www.mjtnet.com\/usergroup\/member314.html\">rullbandspelare<\/a> responds:<\/p>\n<blockquote><p>\nIt appears to work with just putting<br \/>\nssleay32.dll and libeay32.dll in the same folder. <\/p><\/blockquote>\n<p>Even I learn stuff from our forums, or at least find answers more quickly.  A great resource.  Thanks guys.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently wrote a small macro for a customer which does an HTTPRequest via SSL. This requires that OpenSSL is installed. But the customer wanted to know if there was any way of distributing the macro to his users without having to install OpenSSL on all their PCs. Thanks to our wonderful forums one of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1838"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=1838"}],"version-history":[{"count":3,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1838\/revisions"}],"predecessor-version":[{"id":1841,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/1838\/revisions\/1841"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=1838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=1838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=1838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}