Home >

Installation Guide > SafeNet Client Software Installation > Using 32-bit Utilities in Windows 64-bit Environment

Using 32-bit Utilities in Windows 64-bit Environment

Some customers have 32-bit applications that they use within 64-bit Windows. In order to use a SafeNet HSM in that environment along with 32-bit versions of our standard tools (lunacm, vtl, multitoken, etc.) follow these steps, below.  

 

1. Perform a standard LunaClient software installation as instructed for Windows.

2.Two "windows 32" folders are involved.

One resides only in the LunaClient install medium (DVD or LunaClient_x.y.z.tar, and contains only the 32-bit SafeNet Luna tool binary files and, after the contents are extracted, looks like this:

 C:\Users\myname\Downloads\LunaClient_6.2.0-15\windows\32>dir
 Volume in drive C has no label.
 Volume Serial Number is 1216-4343

 Directory of C:\Users\myname\Downloads\LunaClient_6.2.0-15\windows\32

12/17/2015  04:52 PM    <DIR>          .
12/17/2015  04:52 PM    <DIR>          ..
12/15/2015  02:28 PM           274,112 ckdemo.exe
12/15/2015  02:28 PM           650,944 cmu.exe
12/15/2015  02:28 PM         1,412,800 lunacm.exe
12/15/2015  02:28 PM           249,536 multitoken.exe
12/15/2015  02:28 PM            97,984 salogin.exe
12/15/2015  02:28 PM         1,728,192 vtl.exe
               6 File(s)      4,413,568 bytes
               2 Dir(s)  188,938,604,544 bytes free  

 

And one is created by the 64-bit installer in the LunaClient folder; it contains the 32-bit libraries and related files, but does not include the tool binary files.

C:\Program Files\SafeNet\LunaClient>dir
 Volume in drive C has no label.
 Volume Serial Number is 1216-4343

 Directory of C:\Program Files\SafeNet\LunaClient

12/02/2015  11:04 AM    <DIR>          .
12/02/2015  11:04 AM    <DIR>          ..
11/09/2015  09:57 AM    <DIR>          cert
11/07/2015  04:58 AM           323,776 ckdemo.exe
11/07/2015  04:58 AM           896,704 cklog201.dll
11/07/2015  04:58 AM               128 cklog201.dll.sig
11/07/2015  04:58 AM           944,832 Cmu.exe
11/09/2015  09:57 AM    <DIR>          config
11/07/2015  04:58 AM         2,764,992 cryptoki.dll
11/07/2015  04:58 AM               128 cryptoki.dll.sig
11/09/2015  09:57 AM             1,613 crystoki.ini
11/09/2015  09:57 AM    <DIR>          CSP
11/09/2015  09:57 AM    <DIR>          data
11/09/2015  09:57 AM    <DIR>          G5Driver
11/09/2015  09:57 AM    <DIR>          htl
11/09/2015  09:57 AM    <DIR>          JCProv
11/09/2015  09:57 AM    <DIR>          JSP
11/09/2015  09:57 AM    <DIR>          KSP
11/07/2015  04:58 AM         1,995,456 lunacm.exe
11/07/2015  04:58 AM         2,459,840 lunadiag.exe
12/02/2015  10:16 AM                16 lunasa_update-6.2.0-15.auth
12/02/2015  10:16 AM       130,904,834 lunasa_update-6.2.0-15.spkg
11/07/2015  04:58 AM           301,248 multitoken.exe
11/07/2015  04:44 AM             7,145 openssl.cnf
11/07/2015  04:58 AM         2,608,832 PedClient.exe
11/09/2015  09:57 AM    <DIR>          PedClient_service
11/07/2015  04:58 AM           216,256 PedServer.exe
11/07/2015  04:27 AM           315,392 PSCP.EXE
11/07/2015  04:27 AM           483,328 PUTTY.EXE
11/07/2015  04:27 AM           657,290 PUTTY.HLP
11/07/2015  04:58 AM         2,280,640 rbs.exe
11/07/2015  04:58 AM         2,673,856 rbs_processor2.dll
11/09/2015  09:57 AM    <DIR>          RemotePEDDriver
12/10/2015  11:53 PM            33,017 remotePedServerLog.log
11/07/2015  04:58 AM            99,520 salogin.exe
11/09/2015  09:57 AM    <DIR>          samples
11/07/2015  04:58 AM           220,864 shim.dll
11/07/2015  04:58 AM               128 shim.dll.sig
10/20/2015  12:11 PM    <DIR>          softtoken
11/07/2015  04:58 AM         1,575,616 softtoken.dll
11/07/2015  04:58 AM            81,600 ureset.exe
11/07/2015  04:58 AM         2,558,144 VTL.exe
11/09/2015  09:57 AM    <DIR>          win32
              27 File(s)    154,405,195 bytes
              16 Dir(s)  190,472,613,888 bytes free 


  C:\Program Files\SafeNet\LunaClient\win32>dir
 Volume in drive C has no label.
 Volume Serial Number is 1216-4343

 Directory of C:\Program Files\SafeNet\LunaClient\win32

11/09/2015  09:57 AM    <DIR>          .
11/09/2015  09:57 AM    <DIR>          ..
11/07/2015  04:43 AM           413,376 cklog201.dll
11/07/2015  04:43 AM               128 cklog201.dll.sig
11/07/2015  04:43 AM         1,924,800 cryptoki.dll
11/07/2015  04:43 AM               128 cryptoki.dll.sig
11/09/2015  09:57 AM    <DIR>          csp
11/09/2015  09:57 AM    <DIR>          JCProv
11/09/2015  09:57 AM    <DIR>          jsp
11/09/2015  09:57 AM    <DIR>          KSP
11/07/2015  04:43 AM           175,808 shim.dll
11/07/2015  04:43 AM               128 shim.dll.sig
11/07/2015  04:43 AM         1,101,504 softtoken.dll
               7 File(s)      3,615,872 bytes
               6 Dir(s)  188,937,732,096 bytes free

C:\Program Files\SafeNet\LunaClient\win32>

 

3.From the \windows\32 folder of the unpacked archive, copy all the 32-bit utilities into the installed LunaClient directory (C:\Program Files\SafeNet\LunaClient\win32).

C:\Program Files\SafeNet\LunaClient\win32>dir
 Volume in drive C has no label.
 Volume Serial Number is 1216-4343

 Directory of C:\Program Files\SafeNet\LunaClient\win32

12/17/2015  05:18 PM    <DIR>          .
12/17/2015  05:18 PM    <DIR>          ..
12/15/2015  02:28 PM           274,112 ckdemo.exe
11/07/2015  04:43 AM           413,376 cklog201.dll
11/07/2015  04:43 AM               128 cklog201.dll.sig
12/15/2015  02:28 PM           650,944 cmu.exe
11/07/2015  04:43 AM         1,924,800 cryptoki.dll
11/07/2015  04:43 AM               128 cryptoki.dll.sig
11/09/2015  09:57 AM    <DIR>          csp
11/09/2015  09:57 AM    <DIR>          JCProv
11/09/2015  09:57 AM    <DIR>          jsp
11/09/2015  09:57 AM    <DIR>          KSP
12/15/2015  02:28 PM         1,412,800 lunacm.exe
12/15/2015  02:28 PM           249,536 multitoken.exe
12/15/2015  02:28 PM            97,984 salogin.exe
11/07/2015  04:43 AM           175,808 shim.dll
11/07/2015  04:43 AM               128 shim.dll.sig
11/07/2015  04:43 AM         1,101,504 softtoken.dll
12/15/2015  02:28 PM         1,728,192 vtl.exe
              13 File(s)      8,029,440 bytes
               6 Dir(s)  188,933,582,848 bytes free

 

4.Go to the 64 bit LunaClient directory (C:\Program Files\SafeNet\LunaClient), copy the crystoki.ini file, and paste it into the win32 folder (C:\Program Files\SafeNet\LunaClient\win32).  

C:\Program Files\SafeNet\LunaClient\win32>dir
 Volume in drive C has no label.
 Volume Serial Number is 1216-4343

 Directory of C:\Program Files\SafeNet\LunaClient\win32

12/17/2015  05:23 PM    <DIR>          .
12/17/2015  05:23 PM    <DIR>          ..
12/15/2015  02:28 PM           274,112 ckdemo.exe
11/07/2015  04:43 AM           413,376 cklog201.dll
11/07/2015  04:43 AM               128 cklog201.dll.sig
12/15/2015  02:28 PM           650,944 cmu.exe
11/07/2015  04:43 AM         1,924,800 cryptoki.dll
11/07/2015  04:43 AM               128 cryptoki.dll.sig
11/09/2015  09:57 AM             1,613 crystoki.ini
11/09/2015  09:57 AM    <DIR>          csp
11/09/2015  09:57 AM    <DIR>          JCProv
11/09/2015  09:57 AM    <DIR>          jsp
11/09/2015  09:57 AM    <DIR>          KSP
12/15/2015  02:28 PM         1,412,800 lunacm.exe
12/15/2015  02:28 PM           249,536 multitoken.exe
12/15/2015  02:28 PM            97,984 salogin.exe
11/07/2015  04:43 AM           175,808 shim.dll
11/07/2015  04:43 AM               128 shim.dll.sig
11/07/2015  04:43 AM         1,101,504 softtoken.dll
12/15/2015  02:28 PM         1,728,192 vtl.exe
              14 File(s)      8,031,053 bytes
               6 Dir(s)  188,932,857,856 bytes free

 

5.Open the copied crystoki.ini file in a text editor.

[Chrystoki2]
LibNT=C:\Program Files\SafeNet\LunaClient\cryptoki.dll
[Luna]
PEDTimeout1=100000
PEDTimeout2=200000
CommandTimeoutPedSet=720000
KeypairGenTimeOut=2700000
CloningCommandTimeOut=300000
PEDTimeout3=10000
DefaultTimeOut=500000
[CardReader]....... etc. 

 

6.Under the [Chrystoki2] section replace the old LibNT path with : LibNT=C:\Program Files\SafeNet\LunaClient\win32\cryptoki.dll  

[Chrystoki2]
LibNT=C:\Program Files\SafeNet\LunaClient\win32\cryptoki.dll
[Luna]
PEDTimeout1=100000
PEDTimeout2=200000
CommandTimeoutPedSet=720000
KeypairGenTimeOut=2700000
CloningCommandTimeOut=300000
PEDTimeout3=10000
DefaultTimeOut=500000
[CardReader]
....... etc. 

 

7.In Windows, change make an Evironment Variables change as follows:

In Computer -> Properties -> Advanced Settings -> Environment Variables -> System Variables  
Change ChrystokiConfigurationPath value to C:\Program Files\SafeNet\LunaClient\win32   

You can now use your 32 bit utilities in a 64 bit Windows environment.