I am currently using Windows 11 but I assume it's the same steps for Windows 10.
I've searched everywhere, and there is not a single tutorial that shows how to succesfully install OpenSSL on Windows.
All answers on this website are just workarounds, for example using the Git version. I specifically use OpenSSL from XAMPP, but that's not what I want.
I want to be able to install OpenSSL from source. Also, currently Git and XAMPP install OpenSSL version 1.1.1, and I want OpenSSL 3.
I've tried all methods, and the OpenSSL instructions lack information. They just say some hints and then three dots (...), like (./Configure...
).
This is where I'm trying to follow:
https://github.com/openssl/openssl/blob/master/NOTES-WINDOWS.md#native-builds-using-mingw
For this example, I went for the MinGW method (But, if you can help installing it via one of the other methods successfully then it's alright as well and I will also do it):
I installed MSYS32 and Perl on Windows, but then I got stuck at the MinGW part, I already installed MinGW on MSYS32 - I just installed ALL of the packages in the toolchain:
$ pacman -S mingw-w64-ucrt-x86_64-toolchain
:: There are 19 members in group mingw-w64-ucrt-x86_64-toolchain:
:: Repository ucrt64
1) mingw-w64-ucrt-x86_64-binutils 2) mingw-w64-ucrt-x86_64-crt-git
3) mingw-w64-ucrt-x86_64-gcc 4) mingw-w64-ucrt-x86_64-gcc-ada
5) mingw-w64-ucrt-x86_64-gcc-fortran 6) mingw-w64-ucrt-x86_64-gcc-libgfortran
7) mingw-w64-ucrt-x86_64-gcc-libs 8) mingw-w64-ucrt-x86_64-gcc-objc
9) mingw-w64-ucrt-x86_64-gdb 10) mingw-w64-ucrt-x86_64-gdb-multiarch
11) mingw-w64-ucrt-x86_64-headers-git 12) mingw-w64-ucrt-x86_64-libgccjit
13) mingw-w64-ucrt-x86_64-libmangle-git 14) mingw-w64-ucrt-x86_64-libwinpthread-git
15) mingw-w64-ucrt-x86_64-make 16) mingw-w64-ucrt-x86_64-pkgconf
17) mingw-w64-ucrt-x86_64-tools-git 18) mingw-w64-ucrt-x86_64-winpthreads-git
19) mingw-w64-ucrt-x86_64-winstorecompat-git
But then, gcc
command still doesn't work. I believe it has something to do with me not adding it to the PATH
of MSYS32, but there is no instructions as to how to do that (also, even after installing the entire toolchain, C:\msys64\mingw64\bin
is empty!)
Also, they later say:
Apart from that, follow the Unix / Linux instructions in INSTALL.md.
Awesome, so I go to the INSTALL.md
, and all that's there, is just another hint:
$ ./Configure
$ make
$ make test
Why is it so complex to just build and install OpenSSL on Windows? And I want the official from source, and not workarounds like via Git or XAMPP, or unknown 3rd party. (Why don't they provide a .exe
anyway?)
Hopefully this post will be able to be used as future reference for anyone that wants to install OpenSSL on Windows with full instructions
Thanks