Paillier Threshold Cryptography Web Service and Evote Demonstration Quick Set-up

  1. Copy the ~/gsc/pub/bswilson/src/ThresholdCryptoService folder to a computer with Internet Information Services (IIS) installed.
  2. Open Internet Information Services from Administrative Tools.
  3. Expand the local computer folder (named your computer name), expand the Web Sites folder, expand the Default Web Site folder.
  4. 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.
  5. Copy the ~/gsc/pub/bswilson/src/VotingService folder to a computer with Internet Information Services (IIS) installed.
  6. Open Internet Information Services from Administrative Tools.
  7. Expand the local computer folder (named your computer name), expand the Web Sites folder, expand the Default Web Site folder.
  8. 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.
  9. Using SQL Server Management Studio, open the CreateDatabaseScript.sql script file and execute it in order to create the Voting database.
  10. 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.
  11. Copy all VS2005 folders/files from ~/gsc/pub/bswilson/src/VS2005 into a directory on a Windows machine with VS2005 installed.
  12. 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.
  13. 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.
  14. Copy the gmp.dll file into %system root%\system32
  15. Open the ThresholdCryptoService.sln file from VS2005. You should now be able to build/debug and view the source code from VS 2005.
  16. 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.