Page 3 of 3 FirstFirst 123
Results 41 to 46 of 46
  1. #41
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    So you have 3 keystores:
    keystore.jks has public and private keys called server-alias and client-alias
    cacerts.jks has the public key for server-alias
    servern/cacerts.jks has the public key for client-alias

    What are you doing with these keystores? (I don't want to see another code dump, try and understand what the code you write and the commands you type actually do)
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  2. #42
    Koren3 is offline Member
    Join Date
    Apr 2009
    Posts
    50
    Rep Power
    0

    Default

    OK I think, Client need own private key and own public key and server too.
    Client encrypt message own public key and send it to server, server decrypt this message own private key. Server encypt message own public key and send it to client. Client decrypt message own private key.

  3. #43
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    You cannot decrypt a message encoded with A's public key by using B's private key, and vice versa. Key pairs always have to match up.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  4. #44
    Koren3 is offline Member
    Join Date
    Apr 2009
    Posts
    50
    Rep Power
    0

    Default

    OK, but what can i do to, My program run?

  5. #45
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Default

    Start by using keystore.jks for both applications and move on from there.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

  6. #46
    Koren3 is offline Member
    Join Date
    Apr 2009
    Posts
    50
    Rep Power
    0

Page 3 of 3 FirstFirst 123

Similar Threads

  1. append response to the request from Socket and write to another socket
    By vaibhav_singh_vs@yahoo.co in forum Networking
    Replies: 3
    Last Post: 04-17-2009, 08:02 PM
  2. help about Socket
    By fahien_akim in forum New To Java
    Replies: 0
    Last Post: 04-16-2009, 11:41 AM
  3. Replies: 5
    Last Post: 03-20-2009, 11:04 PM
  4. Socket
    By rob in forum New To Java
    Replies: 1
    Last Post: 03-19-2009, 03:24 PM
  5. Socket
    By vortex in forum New To Java
    Replies: 2
    Last Post: 05-25-2008, 07:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •