> // Try to create > if (!CryptAcquireContext(&m_provApacheKeyStore, > s_xsecKeyStoreName, > provRSAName, > m_provRSAType, > dwFlags | CRYPT_NEWKEYSET)) { > throw XSECException(XSECException::InternalError, > "WinCAPICryptoProvider() - Error obtaining generating > internal key store for PROV_RSA_FULL"); }
Above code is used only during encryption. If you are not using the encryption, you don't need it. Just comment it and your app will work. But this work around will not help us in discovering what the real problem was. What is the code returned by GetLastError()?