Subject: Certificate created in version 3 certificate template
Date: 2013-06-17 17:43:39
From: Kevin Liu
Source: certificate-created-version-3-certificate-template
----------------------------------------------------------------------

Hi,

We are using certificate that was issued in version 3 certificate template from GoDaddy. When called  Sign(X509Certificate2 x509Certificate) function, an exception thrown: 

{System.Security.Cryptography.CryptographicException: Invalid provider type specified.
 
   at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
   at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
   at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair()
   at System.Security.Cryptography.RSACryptoServiceProvider..ctor(Int32 dwKeySize, CspParameters parameters, Boolean useDefaultKeySize)
   at System.Security.Cryptography.X509Certificates.X509Certificate2.get_PrivateKey()
   at ComponentPro.Saml.SignableSamlObject.Sign(X509Certificate2 x509Certificate)
 
Is there any solution for this problem?
---------------------------------------------------------------------- Note: This question has been asked on the Q&A forum of Thang Dang's fraudulent ComponentPro brand If you purchased anything from ComponentPro, you have been scammed. Contact the payment processor who sold you the license and ask for your money back. Back to ComponentPro Q&A Forum Index