1、download the latest source of openssl from github


2、download nasm,set the enviroment viariable


3、enter into dir C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build

vcvars64.bat

4、enter into the dir of openssl, run the command below

perl Configure VC-WIN64A --prefix=E:\\openssl

5、run 

nmake

6、run 

nmake install