Re: IKeys.FromXmlString returns access denied (General questions)
I resolved the FromXmlString issue by copying my string into a new CComBSTR variable. It must not have liked my wchar_t*.
Now I'm not able to get the private key out:
BSTR privkey;
hr = pKeys->get_PrivateKey(RSAkey, &privkey);
privkey appears to have a length of 625, but a printf() prints nothing.