Certificates from CA's and the keystore

Hello all,
I have tracked through a series of forum topics that seem to ask similar questions and receive similar answers regarding both signing jars and using the certificates for communications.
Forgive the overlap, but I have a slightly related question.
Is the only way to use the keystore (and keytool to manage the keystore) when signing jars by generating a key pair at the start? Is that why all the examples always start with that option, and none of them start from a scenario that is different?
Is it possible to come in with an existing CA signed certificate, and the CA's root certificate and sign the jars? Would that setup work for communication at all?
I have tried this for signing, and both certificates end up as trustedCertEntries within the keystore, but this does not allow the signing of jars since there is no keyEntry. The error message is:
"jarsigner: Certificate chain not found for: and. and must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain."
I have not tried it for communication.
Is there some other alternative to generating the key-pair directly in the keystore, exporting the csr, and getting the CA to sign and reply to that csr?
My question stems from a customer wanting to only provide the certificate they want to use, and maybe the CA root cert if necessary.
Thanks much in advance!
Edited by: gennadius on Dec 19, 2007 3:52 PM

Is it possible to come in with an existing CA signed certificateBut this isn't the beginning of the process.
A signed certificate results from a Certificate Signing Request (CSR) being submitted to a CA.
A CSR is generated from a private key/public key pair. But it only contains the public key. So you have to get it signed and then re-import it to the same keystore which originally contained the private key, to complete the association between the signed cert and the private key.
The signed certicificate is a public authentication that the owner of this certificate uniquely owns this public key, which corresponds to a private key. Without the private key the entire exercise can't get started.
So unless you can find a way to get the private key from whereever it was when the CSR process was started, just importing the signed certificate doesn't give you a prioviate key. Without a private key, you can't sign things, decrypt, be an SSL authenticated endpoint, etc.
And if you could cart private keys around like that, they wouldn't be private, so the entire point of PKI is lost.

Similar Messages

Maybe you are looking for

  • Unable to send or receive mail on my Mac Book Pro

    I created a new ICloud acct. in mail, but am now unable to send, or receive Messages. My previous acct. just quit, doing it's Job. I have another acct. with my server, Telus, but always used the mac acct. to communicate with Friends, and the Telus on

  • Mail passwords are not saved to the Keychain

    This problem seems to relate to the long standing Mail Password issue that has been frustrating many Tiger (and Panther) users. Firstly: Mail keeps asking for account passwords in an unpredictable way. Even if I "save these to the keychain" via 'allw

  • Three questions about the creation of secondary indexes in ODS design mode

    1. When we right click the Indexes folder in ODS design to select Create to create the Index folder 010, a small window pops up with a check box called "Unique", do we have to check this checkbox to create folder 010? 2. If we would like to include 3

  • Getting album artwork for CD's

    Yo, one more question, I have all my CD's in iTunes. However, none of them have artwork. Is there any good third party software/ way to easily get album artwork for all my CD's thanks!

  • IE10&11 Dynamic port usage.

    Hello Since we upgraded to IE10 on a 2008 R2 terminal server we're getting the error "This page cannot be displayed" After a few minutes it would start working again, I was able to reproduce the error by going to a site with a lot of images, like goo