> Hello,
>
[quoted text clipped - 4 lines]
> contain the "JCE Code Signing CA" and so does not enable the lib to
> get out of the sandbox.
> WebStart also does not permit me to sign this
> jar. It will complain that it is using a jar that is signed more than
> once.
If all that's stopping you from signing it yourself is the existing
signature, you could remove the existing signature.
> So I would like to do is add this "JCE Code Signing CA" to WebStart's
> cacert file but where do I get the certificate for "JCE Code Signing
> CA"? Should it not be public and downloadable?
>
> Anyone has a better solution than this?
--Mike Amling
Jean-Claude Cote - 24 Nov 2003 18:01 GMT
Correct me if I'm wrong but providers that provide implementations for JCE
services must be digitally signed and should be signed with a certificate
issued by "trusted" Certification Authorities. Currently, the following two
Certification Authorities are considered "trusted"
a.. Sun Microsystems' JCE Code Signing CA, and
b.. IBM JCE Code Signing CA.
Is this something you've done and works?
> > Hello,
> >
[quoted text clipped - 19 lines]
>
> --Mike Amling
Jean-Claude Cote - 24 Nov 2003 18:26 GMT
Well since it simple enough to try it I did. Here is the exception I got
when I tried using the Bouncy Castle:
ava.lang.SecurityException: The provider BC may not be signed by a trusted
party
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.Cipher.a(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at ca.gc.nrc.gip.tools.OpenSSLKey.getCipher(OpenSSLKey.java:339)
at ca.gc.nrc.gip.tools.OpenSSLKey.encrypt(OpenSSLKey.java:247)
at ca.gc.nrc.gip.tools.OpenSSLKey.encrypt(OpenSSLKey.java:225)
at
ca.gc.nrc.gip.tools.GridCertRequest.genCertificateRequest(GridCertRequest.ja
va:376)
at
ca.gc.nrc.gip.applets.CertReqApplet.actionPerformed(CertReqApplet.java:267)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
> Correct me if I'm wrong but providers that provide implementations for JCE
> services must be digitally signed and should be signed with a certificate
[quoted text clipped - 27 lines]
> >
> > --Mike Amling
Ok I found it!
Now in order for JWS to accept the BC's JCE jar it needs to trust the CA
that gave BC it's signing certificate. That is it needs to trust Sun's "JCE
Code Siging CA" certificate.
Ok so I imported this certificate in JWS but no success. I even verified
that the certificate used to sign the jar matches the CA cert in my JWS
keystore like so:
jarsigner -verbose -certs -verify -keystore "JWS\cacerts"
"tomcat\webapps\wsapp\jce-jdk13-117.jar"
When jarsigner is invoke this way it will tell display any match between
certificates used to sign the jar and certificates found in the keystore.
Any ideas what else I could do to find out why JWS does not grant full
permissions to jce-jdk13-117.jar?
Thanks
> Hello,
>
[quoted text clipped - 20 lines]
> Canada
> www.grid.nrc.ca