Results 1 to 4 of 4
  1. #1
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Location
    Cambridge, UK
    Posts
    838
    Rep Power
    6

    Question Key selection for SSL/TLS

    How do you specify which keys from a KeyStore should be used for SSLSockets?
    I have a keystore with two keys and want clients to use one key and servers another. Thanks.

  2. #2
    Nicholas Jordan's Avatar
    Nicholas Jordan is offline Senior Member
    Join Date
    Jun 2008
    Location
    Southwest
    Posts
    1,018
    Rep Power
    8

    Post Setting up SSL on Tomcat 4 is a two-step process

    Introduction to Programming Using Java.
    Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor

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

    Default

    Can't find anything in there. It seems to assume there is only one key in the store called "tomcat". There's no sign in the source code referenced in the config files of selecting keys from a store.

    I'm not using Tomcat. I have a very simple custom server for my custom clients that should encrypt its traffic, requiring both client and server authentication.

    I'll see if I can fiddle it around so I have two keystores: one with the client's private and the server's public, and vice-versa.

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

    Default

    Having separate keystores still doesn't solve it. The server can't tell whether the client is using the client's key or the server's key, as you can't have a private key in a keystore without the matching public key.

    I'm incredulous that there's no way of selecting which keys from a keystore an SSL(Server)Socket should use.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. List Selection
    By Sarinam in forum AWT / Swing
    Replies: 2
    Last Post: 07-14-2008, 07:16 AM
  2. How to use SWT List Selection Event
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 09:04 PM
  3. Dir File Selection
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 08:58 PM
  4. radiobutton selection
    By newtojava7 in forum New To Java
    Replies: 1
    Last Post: 03-17-2008, 03:58 AM
  5. Code for selection
    By kneekow in forum Eclipse
    Replies: 0
    Last Post: 02-01-2008, 04:10 PM

Posting Permissions

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