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 CREA TESTCA2 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 CREA TESTCA2.cer 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 CREA TESTCA2 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 TESTCA2 - 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.
    • Specify Password: password.
    • Click Next.
    • Click Next.
    • Click Finish.

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

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.


Send comments on this topic.

(c) CREA 2002-2007 www.creasign.si