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:
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.
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.
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.
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:
Right click the Samples\CreaSignWeb directory.
Select Properties.
Select the Web Sharing tab.
Select Share this folder.
Select Ok.
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:
Open the command prompt: select Start/Run, type cmd
and press Enter.
Use the cd command to navigate to the sample's
directory. Example:
cd "\program files\Crea\CreaSign
SDK\Samples\Simple"
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.