cacerts file

Casey Marshall csm@gnu.org
Tue Feb 6 17:47:00 GMT 2007


On Feb 6, 2007, at 8:09 AM, Noé Amorim wrote:
> Hello.
> I have made a tool to sign and merge pdf documents in Java and
> compiled tow versions, one dynamically, the other statically.
> I got no errors at compilation time, but this piece of code throws an
> Exception at runtime:
>> KeyStore ks = KeyStore.getInstance("pkcs12");
>> Exception in thread "main" java.security.KeyStoreException: pkcs12
> at java.security.KeyStore.getInstance(KeyStore.java:125)
> at PdfKit.main(pdfkit)
>> If i compile my source with the Sun's JDK evertything works great.
> Some people told that probably this occurs because there is a missing
> cacerts file in libgcj, like the one in jdk1.5.xxx/jre/lib/security.
>> Can someone explain this better to me? And, can i fix this?
> Thank you in advance.

libgcj (Classpath, actually) doesn't provide an implementation of the 
"pkcs12" KeyStore.
I don't recall if they have an implementation or not, but you may 
want to try Bouncycastle: http://bouncycastle.org/.


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /