KeyStore Blues

Discussion in 'Java' started by Stefan Schulz, Aug 6, 2005.

  1. Hi all

    After being rather forcefully convinced to use a KeyStore object in my
    application (since there is an easy way to encode keys, but no way i could
    find to decode them again), another problem struck. I can read a KeyStore
    just fine. I can also add Public Keys. But once i try to add a PrivateKey
    instance, the program aborts because of an incomplete certificate chain.
    Since these keys will only be used by my application, i do not really see
    why i should go through a long certification process.

    Is there any way to self-certify the keys?

    --
    You can't run away forever,
    But there's nothing wrong with getting a good head start.
    --- Jim Steinman, "Rock and Roll Dreams Come Through"
     
    Stefan Schulz, Aug 6, 2005
    #1
    1. Advertising

  2. Stefan Schulz

    Pete Barrett Guest

    On Sat, 06 Aug 2005 12:22:12 +0200, Stefan Schulz <>
    wrote:

    >Hi all
    >
    >After being rather forcefully convinced to use a KeyStore object in my
    >application (since there is an easy way to encode keys, but no way i could
    >find to decode them again), another problem struck. I can read a KeyStore
    >just fine. I can also add Public Keys. But once i try to add a PrivateKey
    >instance, the program aborts because of an incomplete certificate chain.
    >Since these keys will only be used by my application, i do not really see
    >why i should go through a long certification process.
    >
    >Is there any way to self-certify the keys?


    Yes. If memory serves, when you generate a key pair using keytool, you
    automatically generate a self-certified root certificate. Look in the
    keytool documentation in case my meory's faulty, but I think that's
    right.

    Pete Barrett
     
    Pete Barrett, Aug 6, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Salvo
    Replies:
    3
    Views:
    4,825
    John Salvo
    Sep 9, 2003
  2. Andrew Thompson
    Replies:
    5
    Views:
    9,318
    Andrew Thompson
    Dec 12, 2003
  3. Rogue Chameleon

    KeyStore and PublicKey

    Rogue Chameleon, Sep 27, 2004, in forum: Java
    Replies:
    3
    Views:
    411
    Sudsy
    Sep 27, 2004
  4. Fritz Bayer

    Hardcode keystore into java program

    Fritz Bayer, Oct 24, 2004, in forum: Java
    Replies:
    1
    Views:
    1,241
    Rogan Dawes
    Oct 25, 2004
  5. oziris
    Replies:
    3
    Views:
    20,636
    Roedy Green
    Sep 30, 2005
Loading...

Share This Page