# Build OpenSSL-1.1.1f on Windows 1. Install ActivePerl then edit file `"Perl64\lib\ActivePerl\Config.pm"` => this path is for ActivePerl 5.2.6 Around line 400, ```Perl= # Prevent calling Win32::Console::DESTROY on a STDOUT handle my $console; sub _warn { # my($msg) = @_; # unless (-t STDOUT) { # print "\n$msg\n"; # return; # } # require Win32::Console; # unless ($console) { # $console = Win32::Console->new(Win32::Console::STD_OUTPUT_HANDLE()); # } # my($col,undef) = $console->Size; # print "\n"; # my $attr = $console->Attr; # $console->Attr($Win32::Console::FG_RED | $Win32::Console::BG_WHITE); # for (split(/\n/, "$msg")) { # $_ .= " " while length() < $col-1; # print "$_\n"; # } # $console->Attr($attr); # print "\n"; } ``` 2. Download or clone OpenSSL source code 3. Configuration Open Visual Studio command prompt and change working folder to OpenSSL source code folder. `cd OpenSSL-1.1.1f\` Set configuration - for x86 `perl Configure VC-WIN32 no-asm --prefix=C:\OpenSSL-Win32` - for x64 `perl Configure VC-WIN64A no-asm --prefix=C:\OpenSSL-Win64` 4. Build and Install `nmake` `nmake install` ###### tags: `OpenSSL`