RE: Getting 0x8009000b Error for CryptExportKey

From: Jeffrey Tan[MSFT] (v-jetan_at_online.microsoft.com)
Date: 11/22/05


Date: Tue, 22 Nov 2005 02:22:52 GMT

Yes, I agree with Laszlo Elteto. The 0x8009000b error code is actually
NTE_BAD_KEY_STATE constant value in SDK, which means "You do not have
permission to export the key. That is, when the hKey key was created, the
CRYPT_EXPORTABLE flag was not specified.". So you should check if your key
is generated with CRYPT_EXPORTABLE flag. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



Relevant Pages

  • Re: CryptUnprotectData in DPAPI returning 0x8009000b - undocumented
    ... The "machine" flag is ignored by CryptUnprotectData. ... problem with the user password such as the user password has changed ... since the CryptProtectData function was called and the automatic recovery ... This error code is not typically returned when the "machine" flag was passed ...
    (microsoft.public.platformsdk.security)
  • Re: media may have changed error
    ... system will send an error code to the calling process, ... After ejecting the disk and then re-inserting ... sort of global flag is being set to let me know ...
    (microsoft.public.win32.programmer.kernel)
  • Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks.
    ... Since TOMOYO Linux doesn't check MAY_READ/MAY_WRITE permissions for individual ... is the only chance to check MAY_WRITE flag. ... being asked for is MAY_WRITE permission. ... functionality and make it externally usable. ...
    (Linux-Kernel)
  • Re: Happy St Georges Day
    ... flown a Swiss flag in his back garden. ... seemed to be sporting at least one St. George's Cross flag, ... It would appear that flying the Union Jack or as it is actually named the ... Union Flag, Does not need permission. ...
    (uk.local.kent)
  • Re: [TOMOYO #8 (2.6.25-mm1) 1/7] Introduce new LSM hooks.
    ... Since TOMOYO Linux doesn't check MAY_READ/MAY_WRITE permissions for individual ... is the only chance to check MAY_WRITE flag. ... I inserted a new hook here so that this hook can check all ... being asked for is MAY_WRITE permission. ...
    (Linux-Kernel)