sign and verify using Private key and Cert(Public key) derived from .PFX file



I need help in writing a samll application where

1. How to Retrive Private key and Cert from PFX file in binary form (stream of
bytes)
2. Sign a message " Hello" using private key(derived from .PFX file).

3. Verify a message " Hello" using Certficate(Public key derived from .PFX file).

Pls suggest code in VBScript with CAPICOM

regards

vks

.