I tried to sign and verify by C++ cryptoAPI and it works well. The cryptoAPI use the certificate from the store(Personal) on windows to do this. Could I do the same thing by python without export private key or input passphrase?
I tried pycrypto, oscrypto, wincertstore module, but they can't do this.
You can interface with the Crypt32
dll
Using ctypes to access it's functions.
How can I use a DLL file from Python? provides a good idea, but is written in python 2.5, so see the tutorial in the docs for info and a reference.