M
Matt Venables
I'm testing code for a friend and am running into several issues. Any
help would be greatly appreciated (I have gMail invites to offer if
that would help).
OK, here's the deal:
I've been given a bunch of source file which I've compiled into a JAR.
It uses the JCE and therefore needs to be signed. My friend gave me
two certificates, one a .cer and one a .crt file. Both have Owner and
Issuer name as JCE Code Signing CA.
All seems fine so far. The I added the one certificate with "root" in
the name (the .cer file) to the cacerts in my jre lib/security folder.
The other, I've added to my keystore. The problem is that when I
attempt to sign the JARs, I get an error stating "<alias> must
reference a valid KeyStore key entry containing a private key and
correspoinding public key certifiate chain." Any ideas on this?
With this, I decided to make my own keys and sign them myself for
testing purposes. I signed the JARs fine but the JCE returns the
following error during run-time:
"java.security.NoSuchProviderException: JCE cannot authenticate the
provider <name>" ... "Caused by: java.util.jar.JarException: <filename>
is not signed by a trusted signer." Yet I did add my certificate to the
trusted certs (the cacerts file).
If anyone can help, I would really appreciate the help, and as I said,
I have gmail invites to offer.
Thanks,
-Matt
help would be greatly appreciated (I have gMail invites to offer if
that would help).
OK, here's the deal:
I've been given a bunch of source file which I've compiled into a JAR.
It uses the JCE and therefore needs to be signed. My friend gave me
two certificates, one a .cer and one a .crt file. Both have Owner and
Issuer name as JCE Code Signing CA.
All seems fine so far. The I added the one certificate with "root" in
the name (the .cer file) to the cacerts in my jre lib/security folder.
The other, I've added to my keystore. The problem is that when I
attempt to sign the JARs, I get an error stating "<alias> must
reference a valid KeyStore key entry containing a private key and
correspoinding public key certifiate chain." Any ideas on this?
With this, I decided to make my own keys and sign them myself for
testing purposes. I signed the JARs fine but the JCE returns the
following error during run-time:
"java.security.NoSuchProviderException: JCE cannot authenticate the
provider <name>" ... "Caused by: java.util.jar.JarException: <filename>
is not signed by a trusted signer." Yet I did add my certificate to the
trusted certs (the cacerts file).
If anyone can help, I would really appreciate the help, and as I said,
I have gmail invites to offer.
Thanks,
-Matt