This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem using pgp in Applet  RSS feed

satyendra adhikari
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is continuation from my earlier problem where i asked how to register a provider in Applet (IE with jre1.4 plugin).
i have made a trusted applet as per required steps and have given it all permissions in my jre(plugin jre used bye ie)..i have imported the certificate too with the command.
keytool -import - .......
i am currently having my tomcat rnning on the same machine..
so when i call my applet..
i am displayed message to accept the trusted applet...after that..
i get theses exceptions when i try to send data from the apple on my plugin console..
at javax.crypto.Cipher.getInstance(DashoA6275)
at cryptix.openpgp.algorithm.PGPElGamal.<init>(
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at java.lang.Class.newInstance0(
at java.lang.Class.newInstance(
at cryptix.openpgp.algorithm.PGPAlgorithmFactory.getPublicKeyAlgorithm(
at cryptix.openpgp.packet.PGPKeyPacket.decodePublicData(
at cryptix.openpgp.packet.PGPPublicSubKeyPacket.decodeBody(
at cryptix.openpgp.packet.PGPPacketFactory.readPacket(
at cryptix.openpgp.provider.PGPKeyBundleFactory.helper(
at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(
at cryptix.openpgp.provider.PGPMessageFactory.generateAscii(
at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(
at cryptix.message.MessageFactory.generateMessages(
at encrypt.Encrypt.startEncryption(
at encrypt.Encrypt.<init>(
at LoginApObj.actionPerformed(
at java.awt.Button.processActionEvent(
at java.awt.Button.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Cannot authenticate jar:file:US_export_policy.jar!/ The system cannot find the file specified
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
... 30 more
//end of messages
i am trying this code..
MessageFactory mf = MessageFactory.getInstance("OpenPGP");//line 71
Collection msgs = mf.generateMessages(in);//line 72
here in is a data input stream i have opened on server(a file on server)to read a public key.
Tariq Sultan
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mr. Adhikari,
I have read ur email on the list but no prposed solution to this problem .
I am facing the same problem. Can u pl. guide me how did u get rid of this problem.
Tariq Sultan
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!