locked
How to import the server returns the private key???????????????????

    Question

  • server is return :

    "<RSAKeyValue><Modulus>3ygUPg5AyhjXDexXcCqWYg8Z68G6DA.......Mk=</Modulus><Exponent>AQAB</Exponent><P>9vH.................Q==</P><Q>51........Q==</Q><DP>CIAq..........UQtHyOrglIsOHwOrDQgQ==</DP><DQ>iCq................5bwkRYQ==</DQ><InverseQ>ML.............HIGTJGvvH1G6/C8HU4ZPaNsoyuXA==</InverseQ><D>GwW/bcRMFCzt3cHA1.............EB/af+dLk7z................AE=</D></RSAKeyValue>";

    I would like to ask how the combination of (Modulus, Exponent, P, Q, PQ, DQ, InverseQ, D) to generate IBUFFER???

    And the use of

    Windows.Security.Cryptography.Core classes,AsymmetricKeyAlgorithmProvider class

    Public CryptographicKey ImportKeyPair (

      IBuffer keyBlob,

      CryptographicPrivateKeyBlobType BlobType

    )

    )

    ImportKeyPair!!!??????????????????

    please help!

    I need a specific entity



    • Edited by qwsf01115 Friday, December 26, 2014 12:58 PM error
    Friday, December 26, 2014 12:56 PM

Answers

  • I want to compatible with previous RSA algorithm key, keep the general, but the problem has been solved, see http://www.cnblogs.com/dengxi/p/4195108.html posts

    • Marked as answer by qwsf01115 Wednesday, December 31, 2014 2:18 AM
    Wednesday, December 31, 2014 2:17 AM

All replies

  • There isn't a direct method/class available in WinRT that will let you initialize a RSACryptographicServiceProvider instance with the XML String, for example there is no function called as ...FromXmlString(...). You can however use the approach mentioned here: http://blogs.msdn.com/b/winsdk/archive/2013/04/14/how-to-get-a-cryptographic-public-key-from-a-certificate-in-a-windows-store-application.aspx to first retrieve the Base64 encoded Public key from the XML String above and then later on you can use this encoded public key to be used in your Windows Store app.

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Saturday, December 27, 2014 12:26 AM
    Moderator
  • What I need is a private key into the scheme, the public key in the hair of my posts before they have been imported successfully!!!

    • Edited by qwsf01115 Saturday, December 27, 2014 10:56 AM change
    Saturday, December 27, 2014 10:55 AM
  • Can you clarify your question please? I am sorry, but I am unable to understand your question clearly on what exactly you are trying to do.

    Windows Store Developer Solutions, follow us on Twitter: @WSDevSol|| Want more solutions? See our blog

    Monday, December 29, 2014 7:09 PM
    Moderator
  • I want to compatible with previous RSA algorithm key, keep the general, but the problem has been solved, see http://www.cnblogs.com/dengxi/p/4195108.html posts

    • Marked as answer by qwsf01115 Wednesday, December 31, 2014 2:18 AM
    Wednesday, December 31, 2014 2:17 AM