• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

problem using pgp in Applet

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>(PGPElGamal.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:42)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:277)
at java.lang.Class.newInstance0(Class.java:301)
at java.lang.Class.newInstance(Class.java:254)
at cryptix.openpgp.algorithm.PGPAlgorithmFactory.getPublicKeyAlgorithm(PGPAlgorithmFactory.java:442)
at cryptix.openpgp.packet.PGPKeyPacket.decodePublicData(PGPKeyPacket.java:228)
at cryptix.openpgp.packet.PGPPublicSubKeyPacket.decodeBody(PGPPublicSubKeyPacket.java:92)
at cryptix.openpgp.packet.PGPPacketFactory.readPacket(PGPPacketFactory.java:253)
at cryptix.openpgp.provider.PGPKeyBundleFactory.helper(PGPKeyBundleFactory.java:84)
at cryptix.openpgp.provider.PGPMessageFactory.generateBinary(PGPMessageFactory.java:169)
at cryptix.openpgp.provider.PGPMessageFactory.generateAscii(PGPMessageFactory.java:123)
at cryptix.openpgp.provider.PGPMessageFactory.engineGenerateMessages(PGPMessageFactory.java:74)
at cryptix.message.MessageFactory.generateMessages(MessageFactory.java:134)
at encrypt.Encrypt.startEncryption(Encrypt.java:72)
at encrypt.Encrypt.<init>(Encrypt.java:53)
at LoginApObj.actionPerformed(LoginApObj.java:77)
at java.awt.Button.processActionEvent(Button.java:384)
at java.awt.Button.processEvent(Button.java:353)
at java.awt.Component.dispatchEventImpl(Component.java:3527)
at java.awt.Component.dispatchEvent(Component.java:3368)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:193)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:141)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:133)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)
Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs: java.lang.SecurityException: Cannot authenticate jar:file:US_export_policy.jar!/java.security.PrivilegedActionException: java.util.zip.ZipException: The system cannot find the file specified
at javax.crypto.SunJCE_b.<clinit>(DashoA6275)
... 30 more
//end of messages
at Encrypt.java:72..
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.
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!