rename the certificate and private key in the keystore so that they have the same alias



A certificate & a keypair is generated and stored in a keystore.
How to rename the certificate and private key in the keystore so that
they have the same alias with jdk 1.5?
.



Relevant Pages

  • Re: Getting Private Key from Certificate
    ... I'm guessing this is a keystore, ... Certificate object. ... A private key entry in the KeyStore contains *BOTH* ... represent the Certificate chain for the public key that corresponds to ...
    (comp.lang.java.security)
  • Signed content verifcation fails
    ... The program uses the private key from the default keystore to sign. ... The public key from the exported certificate [to ... System.out.println(dsaSig.verify(signedBarr)); ...
    (comp.lang.java.security)
  • Re: Verifying an assumption around possible problem areas in SSL handshake
    ... this database, then the handshake completes and everyone is happy. ... A keystore is a source for your *own* certificate when sent to others, e.g. it is where the server gets *its* certificate from. ...
    (comp.lang.java.programmer)
  • fixed: ended up being a newbie problem
    ... The main problem with my routine was that pkcs12 does not allow you to store ... store the certificate objects and then dumping them to a PrintStream. ... String sourcefile = txt_source.getText; ... // Convert all elements of the keystore ...
    (comp.lang.java.security)
  • Verifying an assumption around possible problem areas in SSL handshake
    ... When you initiate an HTTPS connection via the JDK, the SSL handshake ... A certificate is offered up to the client by the ... There is one configured keystore per VM. ...
    (comp.lang.java.programmer)