RSA .NET and Java Security Interoperability -- clarification

From: Carl Furner (cfurner2001_at_yahoo.com)
Date: 06/28/04

  • Next message: EP: "ConvertStringSidToSid , not defined??"
    Date: 28 Jun 2004 11:16:08 -0700
    
    

    I am writing the following application(s):

    I want to create a RSA Key Pair on a C# client and then transferred
    the public information to a JAVA Server.

    I was using the suggestions from Michel Gallant to write CRYPTOAPI
    code using C++ and writing out a PUBLICKEYBLOB to a file. I was then
    picking up the file from Java and using some Java code that Michel had
    written and generating a Key.

    At this point... Is there a better why to do this for C#. Should I
    use CRYPTOAPI interface or the native C# interface and if I do how
    would I approach it? How would I transfer the Public Key Info to the
    Java Side? I really don't need to have it in a certificate and most
    likely I will tranfer it using my own protocol.

    Continue... I encrypted the data in the Java code and wrote it to a
    file. I picked up the file on the C# side and when I went to decrypt
    the code with the private key it failed. Any suggestions?

    Thanks,

    Carl Furner


  • Next message: EP: "ConvertStringSidToSid , not defined??"

    Relevant Pages

    • Re: How to exchange keys C++ <-> Java ?
      ... - "using CryptoEncodeObject() twice" ... > encoded SubjectPublicKeyInfo format. ... > (that is what Java Key.getEncoded() returns). ... > - convert from PUBLICKEYBLOB to SubjectPublicKeyInfo encoded format ...
      (microsoft.public.platformsdk.security)
    • Re: How to exchange keys C++ <-> Java ?
      ... Java favor receiving public keys in standard ... CryptoAPI uses its own PUBLICKEYBLOB format most easily ... Or how I can import public key, generated in Java, to ...
      (microsoft.public.platformsdk.security)
    • Re: How to exchange keys C++ <-> Java ?
      ... Here is the simple CryptoAPI PUBLICKEYBLOB to Java PublicKey ... >>I don't think it is possible to encode directly from a ...
      (microsoft.public.platformsdk.security)
    • RE: Dealing with marketing types...
      ... get it in writing... ... is the tendency to dump the guythat brought them to the party. ... little pay on the promise that you will be rewarded when/if success comes. ... > having a Java product would make them more attractive. ...
      (comp.lang.python)
    • RE: Calling a Web Service hosted on a Web Logic server from a C# SOAP
      ... > XXXServices) hosted on a Web Logic server from a C# SOAP client. ... > causes the client to crash. ... a Java client that accesses the same web service succeeds. ... Deploy the Java code as some kind of intermediate "translator" ...
      (microsoft.public.dotnet.framework.webservices)