Re: CryptImportkey() returns an error NTE_BAD_VER

From: sunit (sunit_at_newsgroup.nospam)
Date: 10/26/05


Date: Wed, 26 Oct 2005 17:50:45 +0530

Thanks for the reply

"lelteto" <lelteto@discussions.microsoft.com> wrote in message
news:3BD697DF-3420-4F2D-8B3F-70DDDABB9155@microsoft.com...
> The key blob version has nothing to do with the CSP version. You have to
put
> the value CUR_BLOB_VERSION (0x02) into the bVersion field of BLOBHEADER.
See
> the Platform SDK: PUBLICKEYSTRUC.
>
> Laszlo Elteto
> SafeNet, Inc.
>
> "sunit" wrote:
>
> >
> > ["lelteto" wrote]
> > > Where did you get the key blob? Or do you created it? I doubt that you
would
> > > need to update the Microsoft CSP. (What OS are you running on?)
> > >
> >
> >
> >
> > I have created the key blob. With the help of openssl I created
private keys
> > ..Then I converted private keys into pkcs#8 format so that I can
convert them as
> > per the format required by the Crypto API (little endian order) using
http://www.jensign.com/JavaScience/PvkConvert
> >
> > I am working on Windows 2000 Server.Pls tell me how can I update the
Microsoft CSP.My CSP is MS_DEF_PROV and type PROV_RSA_FULL( used in
CryptAcquireContext)
> >
> > Pls help me .Thanx in advance
> >
> >



Relevant Pages

  • RE: Update CSP
    ... The error NTE_BAD_VER means that the private key blob does not match the CSP version, I don't think it realy wants you to upgrade your CSP. ... Let's assume the version is the problem, what version of Microsoft CSP we need to upgrade to? ...
    (microsoft.public.platformsdk.security)
  • Re: Update CSP
    ... CSP version, I don't think it realy wants you to upgrade your CSP. ... The newest Microsoft Base Cryptographic Provider I can ... private key blob exported from 2003 can be ...
    (microsoft.public.platformsdk.security)
  • Re: How to add a private key to a certificate context
    ... Thanks for help Michel. ... Thanks for giving time for these issues. ... NTE_BAD_VER - The version number of the key BLOB does not match the CSP ...
    (microsoft.public.platformsdk.security)
  • Re: CryptImportKey with PCCERT_CONTEXT->pCertInfo->SubjectPublicKeyInfo.PublicKey
    ... distinct header for each type of key blob. ... See it in MSDN under CSP ...
    (microsoft.public.platformsdk.security)