Azure WorkerRole: Certificate Key not valid for use in specified state
System.Security.Cryptography.CryptographicException: Key not valid for use
in specified state.
at
System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32
hr) at System.Security.Cryptography.Utils._ExportKey(SafeKeyHandle hKey,
Int32 blobType, Object cspObject) at
System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters(Boolean
includePrivateParameters) at
System.Security.Cryptography.RSA.ToXmlString(Boolean
includePrivateParameters)
Now, i belive this happens because that when Azure adds the Certificate to
my WorkerRole deployment, it do not install the certificate with the
option "Mark this Key as Exportable".
I need to add a certificate to my workerrole to beable to decypt a
encryptet setting.
Anyone have any ideas about how i can make Azure Mark the certificates
private key as exportable. or if it could be another issue.
No comments:
Post a Comment