Re: [openssl-users] Help installing OpenSSL 1.1.0 pre6 on Windows 2012 R2
On 8/26/2016 12:25 PM, Matt Caswell wrote: On 26/08/16 19:17, Harster, Kaarl C CIV NAVSEA KPWA, 104 wrote: Hello, I've tried many times now to install OpenSSL 1.1.0 pre6 on my Windows 2012 R2 64bit machine. 1.1.0 pre6 is the beta version, but the final 1.1.0 release was made available yesterday, so to start with I suggest you use that. @Kaarl - Prebuilt 64-bit Windows *default* binaries of 1.1.0 can be obtained from here: https://slproweb.com/products/Win32OpenSSL.html If you need non-default, then you're on your own for building. Have fun? @Everyone else - Anyway, on to the real reason for posting... We are wanting to run 64bit everything. I have installed ActivePerl 5.24.0.2400 I've been building binaries using Strawberry Perl Portable for a few years now. The ActiveState Perl installer and binaries were (and are) a nightmare to obtain and work with. Also, most environments where you would use ActivePerl technically violate the ActivePerl license agreement which, of course, no one ever reads. I'm never going back to that mess. Strawberry Perl is comparatively much, much easier to obtain, install, legally use, and it works just fine. The OpenSSL Configure and Perl other scripts in the source tree barely scratch the surface of the Perl scripting language, so any decent flavor of Perl has a pretty good chance of working. Unless someone *needs* ActivePerl for other things besides building OpenSSL and they have funky Perl code sitting around that depends on the ActivePerl flavor, Strawberry Perl is probably more than sufficient and won't make a mess of the system that it's installed onto. Strawberry is also the flavor of Perl that Larry Wall (the guy who created Perl) uses when he is at a Windows box. So there's that too. In my opinion, Strawberry Perl should be the recommended flavor of Perl for building OpenSSL on Windows instead of ActivePerl. The Strawberry Perl Portable edition is most useful to *me*, but using it requires a few extra environment variables to be set beforehand. Therefore, the Portable variant isn't for everyone. -- Thomas Hruska Shining Light Productions Home of BMP2AVI and Win32 OpenSSL. http://www.slproweb.com/ -- openssl-users mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
Re: [openssl-users] Help installing OpenSSL 1.1.0 pre6 on Windows 2012 R2
On 26/08/16 19:17, Harster, Kaarl C CIV NAVSEA KPWA, 104 wrote: > Hello, > I've tried many times now to install OpenSSL 1.1.0 pre6 on my Windows 2012 > R2 64bit machine. 1.1.0 pre6 is the beta version, but the final 1.1.0 release was made available yesterday, so to start with I suggest you use that. > We are wanting to run 64bit everything. > I have installed > ActivePerl 5.24.0.2400 > Microsoft Visual Studio Ultimate 2012 version 11.0.50727.1 RTMREL with Visual > C++2012 installed in it. You also need NASM. See NOTES.WIN > > When I try to use OpenSSL 1.1.0 pre6 for some reason it can't find the nmake > commend and it looks to me that the do_win54a and other files are missing in > the ms folder. > Sorry but I'm new to ActivePerl. I think the nmake is a perl problem maybe. > Is there additional step you have to do after installing Activeperl to get > the nmake command to work? nmake comes with Visual Studio. Typically if you use the MSVC developer command prompt it will be available on your PATH. https://msdn.microsoft.com/en-GB/library/ms229859(v=vs.110).aspx > I did find on the ActiveState site the following: > "For 64-bit Perl on 64-bit Windows currently the only supported compiler is > the Visual C++ compiler included in the Windows Server 2003 SP1 Platform SDK > (aka the April 2005 edition). > Use the SetEnv.cmd script to set the PATH, LIB, and INCLUDE environment > variables to the correct value for building ActivePerl extensions with this > command: > "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd" /XP64 /RETAIL" > > I tried installing the SDK on my Windows 2012 R2 64bit machine and of course > it will not install can't find files it needs. > Has anyone tried this? > > So I tried going back a version on openSSL > When I try to use the 1.0.2h version of openSSL, the nmake and the other do_ > files are in the ms folder and seem to work but I cannot seem to get past > the following error message: > c:\openssl\openssl-1.0.2h>nmake -f ms\nt.mak > ... > Assembling: tmp32\sha1-586.asm > tmp32\sha1-586.asm(1432) : error A2070:invalid instruction operands > tmp32\sha1-586.asm(1576) : error A2070:invalid instruction operands > NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio > 11.0 > \VC\BIN\ml.EXE"' : return code '0x1' > Stop. You are using the MASM assembler that comes with MSVC. That is no longer officially supported. Use NASM instead. Matt > > Or when I try the following I get a different error: > > c:\openssl\openssl-1.0.2h>perl configure VC-WIN64A > --prefix=C:\_openssl-1.0.2a_x > 64_release_static > Configuring for VC-WIN64A > no-ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128 (skip > dir) > no-gmp [default] OPENSSL_NO_GMP (skip dir) > no-jpake[experimental] OPENSSL_NO_JPAKE (skip dir) > no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 > no-libunbound [experimental] OPENSSL_NO_LIBUNBOUND (skip dir) > no-md2 [default] OPENSSL_NO_MD2 (skip dir) > no-rc5 [default] OPENSSL_NO_RC5 (skip dir) > no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) > no-sctp [default] OPENSSL_NO_SCTP (skip dir) > no-shared [default] > no-ssl-trace[default] OPENSSL_NO_SSL_TRACE (skip dir) > no-ssl2 [default] OPENSSL_NO_SSL2 (skip dir) > no-store[experimental] OPENSSL_NO_STORE (skip dir) > no-unit-test[default] OPENSSL_NO_UNIT_TEST (skip dir) > no-weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir) > no-zlib [default] > no-zlib-dynamic [default] > IsMK1MF=1 > CC=cl > CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -Gy -nologo > -DOPENSSL_SYS > NAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE > -D_CRT_SECURE_N > O_DEPRECATE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 > -DO > PENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM > -DVP > AES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM > EX_LIBS = > CPUID_OBJ =x86_64cpuid.o > BN_ASM=bn_asm.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o rsaz_exp.o > rs > az-x86_64.o rsaz-avx2.o > EC_ASM=ecp_nistz256.o ecp_nistz256-x86_64.o > DES_ENC =des_enc.o fcrypt_b.o > AES_ENC =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o > aesni-s > ha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o > BF_ENC=bf_enc.o > CAST_ENC =c_enc.o > RC4_ENC =rc4-x86_64.o rc4-md5-x86_64.o > RC5_ENC =rc5_enc.o > MD5_OBJ_ASM =md5-x86_64.o > SHA1_OBJ_ASM =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o > sh > a256-mb-x86_64.o > RMD160_OBJ_ASM= > CMLL_ENC =cmll-x86_64.o cmll_misc.o > MODES_OBJ =ghash-x86_64.o aesni-gcm-x86_64.o > ENGINES_OBJ = > PROCESSOR = > RANLIB=true > ARFLAGS = > PERL =perl > SIXTY_FOUR_BIT mode > DES_IN
[openssl-users] Help installing OpenSSL 1.1.0 pre6 on Windows 2012 R2
Hello, I've tried many times now to install OpenSSL 1.1.0 pre6 on my Windows 2012 R2 64bit machine. We are wanting to run 64bit everything. I have installed ActivePerl 5.24.0.2400 Microsoft Visual Studio Ultimate 2012 version 11.0.50727.1 RTMREL with Visual C++2012 installed in it. When I try to use OpenSSL 1.1.0 pre6 for some reason it can't find the nmake commend and it looks to me that the do_win54a and other files are missing in the ms folder. Sorry but I'm new to ActivePerl. I think the nmake is a perl problem maybe. Is there additional step you have to do after installing Activeperl to get the nmake command to work? I did find on the ActiveState site the following: "For 64-bit Perl on 64-bit Windows currently the only supported compiler is the Visual C++ compiler included in the Windows Server 2003 SP1 Platform SDK (aka the April 2005 edition). Use the SetEnv.cmd script to set the PATH, LIB, and INCLUDE environment variables to the correct value for building ActivePerl extensions with this command: "C:\Program Files\Microsoft Platform SDK\SetEnv.Cmd" /XP64 /RETAIL" I tried installing the SDK on my Windows 2012 R2 64bit machine and of course it will not install can't find files it needs. Has anyone tried this? So I tried going back a version on openSSL When I try to use the 1.0.2h version of openSSL, the nmake and the other do_ files are in the ms folder and seem to work but I cannot seem to get past the following error message: c:\openssl\openssl-1.0.2h>nmake -f ms\nt.mak ... Assembling: tmp32\sha1-586.asm tmp32\sha1-586.asm(1432) : error A2070:invalid instruction operands tmp32\sha1-586.asm(1576) : error A2070:invalid instruction operands NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0 \VC\BIN\ml.EXE"' : return code '0x1' Stop. Or when I try the following I get a different error: c:\openssl\openssl-1.0.2h>perl configure VC-WIN64A --prefix=C:\_openssl-1.0.2a_x 64_release_static Configuring for VC-WIN64A no-ec_nistp_64_gcc_128 [default] OPENSSL_NO_EC_NISTP_64_GCC_128 (skip dir) no-gmp [default] OPENSSL_NO_GMP (skip dir) no-jpake[experimental] OPENSSL_NO_JPAKE (skip dir) no-krb5 [krb5-flavor not specified] OPENSSL_NO_KRB5 no-libunbound [experimental] OPENSSL_NO_LIBUNBOUND (skip dir) no-md2 [default] OPENSSL_NO_MD2 (skip dir) no-rc5 [default] OPENSSL_NO_RC5 (skip dir) no-rfc3779 [default] OPENSSL_NO_RFC3779 (skip dir) no-sctp [default] OPENSSL_NO_SCTP (skip dir) no-shared [default] no-ssl-trace[default] OPENSSL_NO_SSL_TRACE (skip dir) no-ssl2 [default] OPENSSL_NO_SSL2 (skip dir) no-store[experimental] OPENSSL_NO_STORE (skip dir) no-unit-test[default] OPENSSL_NO_UNIT_TEST (skip dir) no-weak-ssl-ciphers [default] OPENSSL_NO_WEAK_SSL_CIPHERS (skip dir) no-zlib [default] no-zlib-dynamic [default] IsMK1MF=1 CC=cl CFLAG =-DOPENSSL_THREADS -DDSO_WIN32 -W3 -Gs0 -Gy -nologo -DOPENSSL_SYS NAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_N O_DEPRECATE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DO PENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVP AES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DECP_NISTZ256_ASM EX_LIBS = CPUID_OBJ =x86_64cpuid.o BN_ASM=bn_asm.o x86_64-mont.o x86_64-mont5.o x86_64-gf2m.o rsaz_exp.o rs az-x86_64.o rsaz-avx2.o EC_ASM=ecp_nistz256.o ecp_nistz256-x86_64.o DES_ENC =des_enc.o fcrypt_b.o AES_ENC =aes-x86_64.o vpaes-x86_64.o bsaes-x86_64.o aesni-x86_64.o aesni-s ha1-x86_64.o aesni-sha256-x86_64.o aesni-mb-x86_64.o BF_ENC=bf_enc.o CAST_ENC =c_enc.o RC4_ENC =rc4-x86_64.o rc4-md5-x86_64.o RC5_ENC =rc5_enc.o MD5_OBJ_ASM =md5-x86_64.o SHA1_OBJ_ASM =sha1-x86_64.o sha256-x86_64.o sha512-x86_64.o sha1-mb-x86_64.o sh a256-mb-x86_64.o RMD160_OBJ_ASM= CMLL_ENC =cmll-x86_64.o cmll_misc.o MODES_OBJ =ghash-x86_64.o aesni-gcm-x86_64.o ENGINES_OBJ = PROCESSOR = RANLIB=true ARFLAGS = PERL =perl SIXTY_FOUR_BIT mode DES_INT used RC4_CHUNK is unsigned long long Configured for VC-WIN64A. c:\openssl\openssl-1.0.2h>ms\do_win64a c:\openssl\openssl-1.0.2h>perl util\mkfiles.pl 1>MINFO c:\openssl\openssl-1.0.2h>cmd /c "nasm -f win64 -v" 1>NUL 2>&1 c:\openssl\openssl-1.0.2h>if 1 NEQ 0 goto ml64 c:\openssl\openssl-1.0.2h>perl ms\uplink-x86_64.pl masm 1>ms\uptable.asm c:\openssl\openssl-1.0.2h>ml64 -c -Foms\uptable.obj ms\uptable.asm Microsoft (R) Macro Assembler (x64) Version 11.00.50727.1 Copyright (C) Microsoft Corporation. All rights reserved. Assembling: ms\uptable.asm c:\openssl\openssl-1.0.2h>perl util\mk1mf.pl VC-WIN64A 1>ms\nt.mak c:\openssl\openssl-1.0.2h>perl util\mk1mf.pl dll VC-WIN64A 1>ms\ntdll.mak c:\openssl\openssl-1.0.2h>perl util\mkdef.pl 32 libeay 1>m