This sample shows how to create a certificate signed by the private key of a root certificate present on the MY certificate store.
Here is the source : create_cert.cpp
The Cryptology ePrint Archive provides rapid access to recent research in cryptology. It's hosted by the International Association for Cryptologic Research. The latest articles can be accessed by clicking here.