windows 10 wsl ubuntu openssl windows
apt update apt upgrade apt install perl apt install mingw-w64 apt install mingw-w64-tools cd ~/openssl PATH=$PATH:/opt/mingw64/bin make PATH=$PATH:/opt/mingw64/bin make install wget http://www.blogcompiler.com/wp-content/uploads/2011/12/sha256.c x86_64-w64-mingw32-gcc -I/opt/mingw64/include -L/opt/mingw64/lib -Wall sha256.c -lcrypto -o ubuntusha256.exe 访问c盘 cd /mnt/c/msys64/home/freem/openssl C:\msys64\home\freem\openssl freem 为 windows账户名 系统分配
具体英文帖子
http://www.blogcompiler.com/2011/12/21/openssl-for-windows/
网页备查 微软的mht格式 chrome保存
From: <Saved by Blink> Snapshot-Content-Location: http://www.blogcompiler.com/2011/12/21/openssl-for-windows/ Subject: OpenSSL for Windows | BlogCompiler Date: Sat, 16 Nov 2019 12:31:40 -0000 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----MultipartBoundary--dMrdIPRB7q4EeEMkA3ihqV5x4prtJpXZsb6o2nZTYg----" ------MultipartBoundary--dMrdIPRB7q4EeEMkA3ihqV5x4prtJpXZsb6o2nZTYg---- Content-Type: text/html Content-ID: <frame-1FD8DA21E6231CF4E2DD80EE465EE7FF@mhtml.blink> Content-Transfer-Encoding: quoted-printable Content-Location: http://www.blogcompiler.com/2011/12/21/openssl-for-windows/ DOCTYPE html><ht= ml class=3D" js no-flexbox canvas canvastext webgl no-touch geolocation pos= tmessage websqldatabase indexeddb hashchange history draganddrop websockets= rgba hsla multiplebgs backgroundsize borderimage borderradius boxshadow te= xtshadow opacity cssanimations csscolumns cssgradients cssreflections csstr= ansforms csstransforms3d csstransitions fontface generatedcontent video aud= io localstorage sessionstorage webworkers no-applicationcache svg inlinesvg= smil svgclippaths" lang=3D"en-US"><head><meta http-equiv= =3D"Content-Type" content=3D"text/html; charset=3DUTF-8"><link rel=3D"style= sheet" type=3D"text/css" href=3D"cid:css-52c33f46-1534-4e9e-b575-b77329ab9a= 5a@mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:cs= s-d30f447a-8384-4570-bdf5-9494b772acc2@mhtml.blink" /><link rel=3D"styleshe= et" type=3D"text/css" href=3D"cid:css-3b941a6e-a726-4115-8af3-7b02f87d24e4@= mhtml.blink" /><link rel=3D"stylesheet" type=3D"text/css" href=3D"cid:css-2= 0c0e698-097b-462d-95ae-08f1b5cc633a@mhtml.blink" /> =09 <meta http-equiv=3D"X-UA-Compatible" content=3D"IE=3Dedge,chrome=3D1"> <meta name=3D"viewport" content=3D"width=3Ddevice-width"> <title>OpenSSL for Windows | BlogCompilertitle> <link rel=3D"profile" href=3D"http://gmpg.org/xfn/11"> <link rel=3D"pingback" href=3D"http://www.blogcompiler.com/xmlrpc.php"> =09 =09 <meta name=3D"description" content=3D"Get OpenSSL binaries for 64-bit and 3= 2-bit Windows, using the MinGW-w64 suite."> <meta name=3D"keywords" content=3D"openssl,cross-compile,windows,64-bit,min= gw-w64"> <link rel=3D"canonical" href=3D"http://www.blogcompiler.com/2011/12/21/open= ssl-for-windows/"> <link rel=3D"alternate" type=3D"application/rss+xml" title=3D"BlogCompiler = =C2=BB Feed" href=3D"http://www.blogcompiler.com/feed/"> <link rel=3D"alternate" type=3D"application/rss+xml" title=3D"BlogCompiler = =C2=BB Comments Feed" href=3D"http://www.blogcompiler.com/comments/feed/"> <link rel=3D"alternate" type=3D"application/rss+xml" title=3D"BlogCompiler = =C2=BB OpenSSL for Windows Comments Feed" href=3D"http://www.blogcompiler.c= om/2011/12/21/openssl-for-windows/feed/"> =09 =09 <link rel=3D"stylesheet" id=3D"style.css-css" href=3D"http://www.blogcompil= er.com/wp-content/themes/brunelleschi/style.css?ver=3D4.3.21" type=3D"text/= css" media=3D"all"> <link rel=3D"stylesheet" id=3D"cptch_stylesheet-css" href=3D"http://www.blo= gcompiler.com/wp-content/plugins/captcha/css/style.css?ver=3D4.3.21" type= =3D"text/css" media=3D"all"> <link rel=3D"stylesheet" id=3D"jetpack_css-css" href=3D"http://www.blogcomp= iler.com/wp-content/plugins/jetpack/css/jetpack.css?ver=3D3.5.3" type=3D"te= xt/css" media=3D"all"> <link rel=3D"EditURI" type=3D"application/rsd+xml" title=3D"RSD" href=3D"ht= tp://www.blogcompiler.com/xmlrpc.php?rsd"> <link rel=3D"wlwmanifest" type=3D"application/wlwmanifest+xml" href=3D"http= ://www.blogcompiler.com/wp-includes/wlwmanifest.xml">=20 <link rel=3D"prev" title=3D"Excluding files in CFEngine copies" href=3D"htt= p://www.blogcompiler.com/2011/09/21/excluding-files-in-cfengine-copies/"> <link rel=3D"next" title=3D"Terminate all EC2 instances" href=3D"http://www= .blogcompiler.com/2012/02/06/terminate-all-ec2-instances/"> <meta name=3D"generator" content=3D"WordPress 4.3.21"> <link rel=3D"shortlink" href=3D"http://wp.me/pY087-6A"> =09 <link rel=3D"stylesheet" type=3D"text/css" href=3D"https://ws.sharethis.co= m/button/css/buttons-secure.css">head> <body class=3D"single single-post postid-408 single-format-standard"> <div id=3D"wrapper" class=3D"hfeed container"> <header id=3D"header" class=3D"row clearfix"> <hgroup id=3D"branding" class=3D"twelvecol last"> <h1 class=3D"site-title"><a href=3D"http://www.blogcompiler.com/" titl= e=3D"BlogCompiler" rel=3D"home">BlogCompilera>h1> <h2 class=3D"site-description">{collecting solutions}h2> hgroup> <div id=3D"access" role=3D"navigation" class=3D"twelv= ecol last clearfix"> <div class=3D"skip-link screen-reader-text"><a href=3D"http://www.blog= compiler.com/2011/12/21/openssl-for-windows/#content" title=3D"Skip to cont= ent">Skip to contenta>div> <div class=3D"menu"><ul><li><a href=3D"http://www.blogcompiler.com/">H= omea>li><li class=3D"page_item page-item-2"><a href=3D"http://www.blogc= ompiler.com/about/">Abouta>li>ul>div> div> header> <div id=3D"container" class=3D"row clearfix"> =09 <div id=3D"main" role=3D"main" class=3D"ninecol "> =09 <nav id=3D"nav-above" class=3D"navigation"> <div class=3D"nav-previous"><a href=3D"http://www.blogcompiler.com/201= 1/09/21/excluding-files-in-cfengine-copies/" rel=3D"prev"><span class=3D"me= ta-nav">=E2=86=90span> Excluding files in CFEngine copiesa>div> <div class=3D"nav-next"><a href=3D"http://www.blogcompiler.com/2012/02= /06/terminate-all-ec2-instances/" rel=3D"next">Terminate all EC2 instances = <span class=3D"meta-nav">=E2=86=92span>a>div> nav> <article id=3D"post-408" class=3D"post-408 post type-post status-publis= h format-standard hentry category-gcc-windows tag-64-bit tag-cross-compile = tag-mingw-w64 tag-openssl tag-windows"> <header> <h1 class=3D"entry-title">OpenSSL for Windowsh1> header> <div class=3D"entry-content"> <p>In earlier articles, we have looked at how to create a <a title=3D= "gcc for Windows" href=3D"http://www.blogcompiler.com/2010/06/13/gcc-for-wi= ndows/">gcc build environment on Windowsa>, and also how to<a title=3D"Co= mpile for Windows on Linux" href=3D"http://www.blogcompiler.com/2010/07/11/= compile-for-windows-on-linux/"> compile binaries for Windows on Linuxa>, = using the <a title=3D"MinGW-w64" href=3D"http://mingw-w64.sourceforge.net/"= >MinGW-w64a> suite to be able to support native 64-bit Windows builds.p= > <p>But in order to build useful applications in these environments, we ofte= n need some common libraries. In this article, we will have a look at how t= o compile the <a title=3D"The OpenSSL project" href=3D"http://www.openssl.o= rg/">OpenSSL librarya> and make a small application that uses it. Compile= d OpenSSL libraries are available for download (see the link at the bottom)= , in case you don=E2=80=99t want to do the compilation yourself.p> <p> p> <h3>Prerequisitesh3> <p>We will be cross-compiling from Linux. If you want to use Windows only, = please consider downloading the compiled OpenSSL binaries near the bottom o= f the page, or adjust the paths accordingly when building the library.p> <p>I have my 64-bit Windows build environment installed in <code>/opt/mingw= 64code>, and the cross-compiler prefix is <code>x86_64-w64-mingw32code>= . I will target (build binaries for) 64-bit Windows in this article. Please= adjust these variables according to your own build environment. <code>i686= -w64-mingw32code> is the prefix for the 32-bit Windows cross-compiler.p= > <p> p> <h3>Compiling OpenSSLh3> <ol> <li>Follow the simple instructions on how to set up a <a title=3D"Compile f= or Windows on Linux" href=3D"http://www.blogcompiler.com/2010/07/11/compile= -for-windows-on-linux/">Windows build environment on Linuxa>. It is also = possible to do this on Windows, but it is simpler and faster using Linux. P= lease leave a comment if you would like me to describe how to build on Wind= ows.li> <li>Grab the desired <a title=3D"OpenSSL source code" href=3D"http://openss= l.org/source/">OpenSSL source tarballa>. Use OpenSSL version 1.0.0 or new= er; OpenSSL versions older than v1.0.0 are a bit harder to build on Windows= , but let me know if you want to see how to do this. I=E2=80=99ll use= OpenSSL version 1.0.0e in the following, but the steps should be identical= for any version newer than 1.0.0.li> <li>Put your tarball in a temporary directory, e.g. /tmp and unpack it:<br> <code><code>$ tar zxvf openssl-1.0.0e.tar.gzcode>code>li> <li>Run the configure script to use the 64-bit Windows compiler.<br> <code>$ cd openssl-1.0.0e<br> $ CROSS_COMPILE=3D"x86_64-w64-mingw32-" ./Configure mingw64 no-asm shared -= -prefix=3D/opt/mingw64code><br> =E2=80=A6<br> Configured for mingw64.li> <li>Compile. Make sure the the cross-compiler is in your path, or add it ex= plicitly as show below.<br> <code>$ PATH=3D$PATH:/opt/mingw64/bin makecode><br> =E2=80=A6li> <li>Install it.<br> <code>$ sudo PATH=3D$PATH:/opt/mingw64/bin make installcode>li> ol> <p>We now have the OpenSSL libraries and headers for 64-bit Windows install= ed. Repeat the steps above with <code>CROSS_COMPILE=3D"i686-w64-mingw32-"= code> and prefix <code>/opt/mingw32code> to build and install the 32-bit = libraries for Windows.p> <p> p> <h3>A simple applicationh3> <p>To confirm OpenSSL is working correctly, let=E2=80=99s create a sm= all C application that generates a SHA-256 digest of a character string. It= reads a string given as the argument, generates the digest and shows the c= omputed digest. The digest-generating code is shown below, while the comple= te code is <a title=3D"sha256 generating code" href=3D"http://www.blogcompi= ler.com/wp-content/uploads/2011/12/sha256.c">available for downloada>.p= > <blockquote><p>void SHA256Hash(unsigned char digest[EVP_MAX_MD_SIZE], char = *stringToHash)<br> {<br> OpenSSL_add_all_digests();p> <p>const EVP_MD *md =3D EVP_get_digestbyname(=E2=80=9Csha256=E2=80=9D);p> <p>EVP_MD_CTX context;<br> EVP_MD_CTX_init(&context);<br> EVP_DigestInit_ex(&context, md, NULL);<br> EVP_DigestUpdate(&context, (unsigned char *)stringToHash, strlen(string= ToHash));p> <p>unsigned int digestSz;<br> EVP_DigestFinal_ex(&context, digest, &digestSz);<br> EVP_MD_CTX_cleanup(&context);p> <p>EVP_cleanup();<br> }p>blockquote> <ol> <li>Save the file <a title=3D"sha256 generating code" href=3D"http://www.bl= ogcompiler.com/wp-content/uploads/2011/12/sha256.c">sha256.c a>in a worki= ng directory.li> <li>Compile it.<br> $ /opt/mingw64/bin/x86_64-w64-mingw32-gcc -I/opt/mingw64/include -L/opt/min= gw64/lib -Wall sha256.c -lcrypto -o sha256.exeli> <li>Check that the executable has the correct binary format (PE32+ is 64-bi= t).<br> $ file sha256.exe<br> sha256.exe: PE32+ executable for MS Windows (console) Mono/.Net assemblyl= i> <li>Copy our new program to a 64-bit Windows machine, and run it in the Win= dows Command Prompt.<br> > sha256.exe 12345li> ol> <p>The last step should generate the following dialog box, which contains t= he SHA-256 digest of the string =E2=80=9C12345=E2=80=9D.p> <p><a href=3D"http://www.blogcompiler.com/wp-content/uploads/2011/12/openss= l-sha256-win64.png"><img class=3D"aligncenter size-full wp-image-416" src= =3D"http://www.blogcompiler.com/wp-content/uploads/2011/12/openssl-sha256-w= in64.png" alt=3D"sha256.exe sample run" width=3D"667" height=3D"327">a>= p> <h2>h2> <p> p> <h3>OpenSSL Windows binariesh3> <p>In case you don=E2=80=99t want to compile the OpenSSL library yourself, = I have compiled version 1.0.0e and made it available for download below.p= > <ul> <li><a title=3D"OpenSSL library for 32-bit Windows" href=3D"http://www.blog= compiler.com/wp-content/uploads/2011/12/openssl-1.0.0e-mingw32.tar.gz">Open= SSL 1.0.0e for 32-bit MinGW-w64a> (prefix i686-w64-mingw32)li> <li><a title=3D"OpenSSL library for 64-bit Windows" href=3D"http://www.blog= compiler.com/wp-content/uploads/2011/12/openssl-1.0.0e-mingw64.tar.gz">Open= SSL 1.0.0e for 64-bit MinGW-w64a> (prefix x86_64-w64-mingw32)li> ul> <p>Just unpack each tarball to your respective MinGW-w64 installation direc= tory. They should work both if you are running the <a title=3D"gcc for Wind= ows" href=3D"http://www.blogcompiler.com/2010/06/13/gcc-for-windows/">gcc c= ompiler on Windowsa>, as well as <a title=3D"Compile for Windows on Linux= " href=3D"http://www.blogcompiler.com/2010/07/11/compile-for-windows-on-lin= ux/">cross-compiling for Windowsa> like we have done above.p> <p>Please leave a comment if you found this interesting or have suggestions= for improvements!p> div> <div class=3D"entry-utility"> This entry was posted in <a href=3D"http://www.blogcompiler.com= /category/gcc-windows/" rel=3D"category tag">GCC Windowsa> and tagged <a = href=3D"http://www.blogcompiler.com/tag/64-bit/" rel=3D"tag">64-bita>, <a= href=3D"http://www.blogcompiler.com/tag/cross-compile/" rel=3D"tag">cross-= compilea>, <a href=3D"http://www.blogcompiler.com/tag/mingw-w64/" rel=3D"= tag">mingw-w64a>, <a href=3D"http://www.blogcompiler.com/tag/openssl/" re= l=3D"tag">openssla>, <a href=3D"http://www.blogcompiler.com/tag/windows/"= rel=3D"tag">windowsa>. Bookmark the <a href=3D"http://www.blogcompiler.c= om/2011/12/21/openssl-for-windows/" title=3D"Permalink to OpenSSL for Windo= ws" rel=3D"bookmark">permalinka>. div> article> <nav id=3D"nav-below" class=3D"navigation"> <div class=3D"nav-previous"><a href=3D"http://www.blogcompiler.com/201= 1/09/21/excluding-files-in-cfengine-copies/" rel=3D"prev"><span class=3D"me= ta-nav">=E2=86=90span> Excluding files in CFEngine copiesa>div> <div class=3D"nav-next"><a href=3D"http://www.blogcompiler.com/2012/02= /06/terminate-all-ec2-instances/" rel=3D"next">Terminate all EC2 instances = <span class=3D"meta-nav">=E2=86=92span>a>div> nav> <div id=3D"comments"> <h3 id=3D"comments-title">32 Responses to <em>OpenSSL for Windowsem>= h3> =09 <ol class=3D"commentlist"> <li class=3D"post pingback"> <p>Pingback: <a href=3D"http://www.blogcompiler.com/2010/07/11/compile-f= or-windows-on-linux/" rel=3D"external nofollow" class=3D"url">Compile for W= indows on Linux | BlogCompilera>p> li> <li class=3D"post pingback"> <p>Pingback: <a href=3D"http://www.blogcompiler.com/2010/06/13/gcc-for-w= indows/" rel=3D"external nofollow" class=3D"url">gcc for Windows | BlogComp= ilera>p> li> <li class=3D"comment even thread-even depth-1" id=3D"li-comment-4154"> <div id=3D"comment-4154"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Steven Pennycite> <span class=3D"says">says:= span> div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4154"> May 13, 2012 at 02:03a> div> div> =09 <ul class=3D"children"> <li class=3D"comment byuser comment-author-author bypostauthor odd alt de= pth-2" id=3D"li-comment-4159"> <div id=3D"comment-4159"> <div class=3D"comment-author vcard"> <cite class=3D"fn">authorcite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4159"> May 13, 2012 at 17:46a> div> div> =09 li> <li class=3D"comment even depth-2" id=3D"li-comment-28818"> <div id=3D"comment-28818"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Albertocite> <span class=3D"says">says:span>= div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-28818"> February 26, 2014 at 17:57a> div> =09 <div class=3D"comment-body"><p>Hi Steven<br> I would like to know the steps in windows, now I=E2=80=99m using Eclipse wi= th MinGW (in Windows 8, C/C++ language), thank you, Best Regardsp> div> =09 <div class=3D"reply"> <a rel=3D"nofollow" class=3D"comment-reply-link" href=3D"http://www.blo= gcompiler.com/2011/12/21/openssl-for-windows/?replytocom=3D28818#respond" a= ria-label=3D"Reply to Alberto">Replya> div> div> =09 li> <li class=3D"comment odd alt depth-2" id=3D"li-comment-61619"> <div id=3D"comment-61619"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Jennifercite> <span class=3D"says">says:span= > div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-61619"> May 29, 2015 at 00:51a> div> div> =09 li> ul> li> <li class=3D"comment even thread-odd thread-alt depth-1" id=3D"li-comment= -4376"> <div id=3D"comment-4376"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Johncite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4376"> May 31, 2012 at 15:16a> div> div> =09 <ul class=3D"children"> <li class=3D"comment byuser comment-author-author bypostauthor odd alt de= pth-2" id=3D"li-comment-4378"> <div id=3D"comment-4378"> <div class=3D"comment-author vcard"> <cite class=3D"fn">authorcite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4378"> May 31, 2012 at 17:50a> div> div> =09 li> ul> li> <li class=3D"comment even thread-even depth-1" id=3D"li-comment-4395"> <div id=3D"comment-4395"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Johncite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4395"> June 1, 2012 at 15:23a> div> div> =09 <ul class=3D"children"> <li class=3D"comment byuser comment-author-author bypostauthor odd alt de= pth-2" id=3D"li-comment-4397"> <div id=3D"comment-4397"> <div class=3D"comment-author vcard"> <cite class=3D"fn">authorcite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4397"> June 1, 2012 at 17:28a> div> div> =09 <ul class=3D"children"> <li class=3D"comment even depth-3" id=3D"li-comment-4424"> <div id=3D"comment-4424"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Johncite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4424"> June 3, 2012 at 18:08a> div> div> =09 li> ul> li> ul> li> <li class=3D"comment odd alt thread-odd thread-alt depth-1" id=3D"li-comm= ent-4426"> <div id=3D"comment-4426"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Johncite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-4426"> June 3, 2012 at 19:15a> div> div> =09 li> <li class=3D"comment even thread-even depth-1" id=3D"li-comment-7439"> <div id=3D"comment-7439"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Joncite> <span class=3D"says">says:span> <= /div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-7439"> December 8, 2012 at 07:24a> div> =09 <div class=3D"comment-body"><p>In case someone else runs in to this prob= lem, as I had a bit of trouble with <code>-lcryptocode> I tried some othe= r SSL libraries, and it turns out that <code>-leay32code> worked for me. = And just that. I should note I have both the .a and .dll files on my machin= e (mingw32, the tdm compiler, windows 7 64-bit).p> div> =09 <div class=3D"reply"> <a rel=3D"nofollow" class=3D"comment-reply-link" href=3D"http://www.blo= gcompiler.com/2011/12/21/openssl-for-windows/?replytocom=3D7439#respond" ar= ia-label=3D"Reply to Jon">Replya> div> div> =09 <ul class=3D"children"> <li class=3D"comment odd alt depth-2" id=3D"li-comment-7440"> <div id=3D"comment-7440"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Joncite> <span class=3D"says">says:span> <= /div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-7440"> December 8, 2012 at 07:27a> div> =09 <div class=3D"comment-body"><p>I may also mention the best compilation t= ips I=E2=80=99ve come across are from <a href=3D"http://www.rfc2324.org/how= to/openvpn4win" rel=3D"nofollow">rfc2324a>. They=E2=80=99re simple, but e= ffective. They=E2=80=99re actually meant for cross-compiling, but whatever.= Compiling OpenSSL on MinGW with the mingw.bat file is aggravating but enti= cing, so the site just gives you some help here and there.p> div> =09 <div class=3D"reply"> <a rel=3D"nofollow" class=3D"comment-reply-link" href=3D"http://www.blo= gcompiler.com/2011/12/21/openssl-for-windows/?replytocom=3D7440#respond" ar= ia-label=3D"Reply to Jon">Replya> div> div> =09 li> ul> li> <li class=3D"comment even thread-odd thread-alt depth-1" id=3D"li-comment= -10735"> <div id=3D"comment-10735"> <div class=3D"comment-author vcard"> <cite class=3D"fn">vijaycite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-10735"> February 28, 2013 at 12:49a> div> =09 <div class=3D"comment-body"><p>Can you please post steps on how to compi= le OpenSSL for Windows 64 from Visual Studio. p> <p>vijayp> div> =09 <div class=3D"reply"> <a rel=3D"nofollow" class=3D"comment-reply-link" href=3D"http://www.blo= gcompiler.com/2011/12/21/openssl-for-windows/?replytocom=3D10735#respond" a= ria-label=3D"Reply to vijay">Replya> div> div> =09 li> <li class=3D"comment odd alt thread-even depth-1" id=3D"li-comment-13578"= > <div id=3D"comment-13578"> <div class=3D"comment-author vcard"> <cite class=3D"fn">snorkelcite> <span class=3D"says">says:span>= div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-13578"> May 16, 2013 at 20:15a> div> div> =09 <ul class=3D"children"> <li class=3D"comment byuser comment-author-admin even depth-2" id=3D"li-c= omment-13770"> <div id=3D"comment-13770"> <div class=3D"comment-author vcard"> <cite class=3D"fn">admincite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-13770"> May 21, 2013 at 05:56a> div> div> =09 li> ul> li> <li class=3D"comment odd alt thread-odd thread-alt depth-1" id=3D"li-comm= ent-17299"> <div id=3D"comment-17299"> <div class=3D"comment-author vcard"> <cite class=3D"fn">Lukecite> <span class=3D"says">says:span> = div> =09 <div class=3D"comment-meta commentmetadata"><a href=3D"http://www.blogco= mpiler.com/2011/12/21/openssl-for-windows/comment-page-1/#comment-17299"> August 13, 2013 at 13:31