CreaSign

Setup and Run the Samples

Setting up the samples

To run the samples the sample digital certificates must be installed on your machine. The certificates are located in the directory <CreaSign SDK Installation directory>Samples\Test Certificates. To install the certificates follow these steps:

  1. Install the root certificate for Test CA in Local machine store:
    • Click Start, click Run, type mmc, and then click OK.
    • In the Console menu, click Add/Remove Snap-in, and then click Add.
    • Under Snap-in, double-click Certificates.
    • Click Computer account for the local machines certificates.
    • Click Next.
    • Click Finish.
    • Click Close.
    • Click OK.
    • Right click the Trusted Root Certification Authorities folder.
    • Click All Tasks and then Import.
    • Click Next.
    • Specify the TestCA.crt file.
    • Click Next.
    • Click Next.
    • Click Finish.
    • Click OK.
  2. Security alert:

    Do not use test certificates in a production environment. Test certificates are issued to unauthenticated users. Installing them in a production environment could mark those users as trusted.

  3. Install the certificate revocation list for Test CA in Local machine store:
    • Click Start, click Run, type mmc, and then click OK.
    • In the Console menu, click Add/Remove Snap-in, and then click Add.
    • Under Snap-in, double-click Certificates.
    • Click Computer account for the local machines certificates.
    • Click Next.
    • Click Finish.
    • Click Close.
    • Click OK.
    • Right click the Trusted Root Certification Authorities folder.
    • Click All Tasks and then Import.
    • Click Next.
    • Specify the TestCA - CRL.crl file.
    • Click Next.
    • Click Next.
    • Click Finish.
    • Click OK.
  4. Install the certificate used for signing.
    • Double click a *.pfx file.
    • Click Next.
    • Click Next.
    • Click Next.
    • Click Next.
    • Click Finish.

    Repeat those steps for each *.pfx file in the directory.

To run the CreaSignWeb sample, you need to create a virtual directory within the Internet Information Server. Follow these steps:

  1. Right click the Samples\CreaSignWeb directory.
  2. Select Properties.
  3. Select the Web Sharing tab.
  4. Select Share this folder.
  5. Select Ok.
  6. Select Ok.

Running the samples

The samples are simple command-line drive applications written in Visual Basic Script. To run a sample, you should use the console-based scripting host called cscript.exe. Follow these steps to run a sample:

  1. Open the command prompt: select Start/Run, type cmd and press Enter.
  2. Use the cd command to navigate to the sample's directory. Example:

    cd "\program files\Crea\CreaSign SDK\Samples\Simple"

  3. Run the sample:

    cscript SampleName.vbs parameters

The samples that create a signature write the signature to a file. To override the default filename, specify a new file name as a parameter to the script.

The samples that verify the signature take one required parameter: the name of the file that contains the signature.

To run the CreaSignWeb sample, open Internet Explorer and navigate to http://localhost/CreaSignWeb/Sign.html.


Send comments on this topic.

(c) Crea 2002-2006