Paillier Threshold Cryptography Web Service and Evote Demonstration Quick Set-up
- Copy the ~/gsc/pub/bswilson/src/ThresholdCryptoService folder to a computer with Internet Information Services (IIS) installed.
- Open Internet Information Services from Administrative Tools.
- Expand the local computer folder (named your computer name), expand the Web Sites folder, expand the Default Web Site folder.
- Right click the Default Web Site folder, and select New->Virtual Directory. The virtual directory creation wizard will start. Click next, and type in ThresholdCryptoService for the directory alias. Click next, then browse to and select the folder where you copied the ThresholdCryptoService directory in step 1. Click next, then check Read and Run Scripts, then click next, then click Finish. You have created a new virtual directory which should be accessible at Test it and see if it works. You should get a Threshold Cryptography Service page.
- Copy the ~/gsc/pub/bswilson/src/VotingService folder to a computer with Internet Information Services (IIS) installed.
- Open Internet Information Services from Administrative Tools.
- Expand the local computer folder (named your computer name), expand the Web Sites folder, expand the Default Web Site folder.
- Right click the Default Web Site folder, and select New->Virtual Directory. The virtual directory creation wizard will start. Click next, and type in VotingService for the directory alias. Click next, then browse to and select the folder where you copied the VotingService directory in step 1. Click next, then check Read and Run Scripts, then click next, then click Finish. You have created a new virtual directory which should be accessible at Test it and see if it works. You should get a Threshold Cryptography Service page.
- Using SQL Server Management Studio, open the CreateDatabaseScript.sql script file and execute it in order to create the Voting database.
- Using SQL Server Management Studio, add the ASPNET user to the Voting database and give it read/write permissions (add to the datareader and datawriter roles). The ASPNET user will have a full name in the format computername\ASPNET.
- Copy all VS2005 folders/files from ~/gsc/pub/bswilson/src/VS2005 into a directory on a Windows machine with VS2005 installed.
- Copy the yasm.exe file (from VS2005 folder) to the Visual Studio 8 bin directory (usually c:\Program Files\Microsoft Visual Studio 8\VC\bin). This file is necessary for compiling gmp under VS2005.
- Copy the yasm.rules file (from VS2005 folder) to the Visual Studio 8 project defaults directory (usually c:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults). This file is necessary for compiling gmp under VS2005.
- Copy the gmp.dll file into %system root%\system32
- Open the ThresholdCryptoService.sln file from VS2005. You should now be able to build/debug and view the source code from VS 2005.
- To use certificates in the evote demonstration, run the CreateTestCertificates.bat file to create and install 10 test certificates in a certificate store named PTCWebService. The .bat file uses the VS2005 tool makecert.exe to create and install the certificates.