Signing jar with pfx or p12

1006 byte By JessN at 2007-9-30 15:53:03
Hi thereI'm trying to sign a jar file using a pkcs#12 file (file.p12) which is exported from netscape 7.2 after I first imported it as a pfx file (both with private and public key). To sign I'm writing the following in the command prompt:C:\>jarsigner -verify -storetype "pkcs12" -keystore ...

Signed Applets, Javascript, browsers and Java plugin

1049 byte By reedmccauley at 2007-9-30 16:04:45
I have a signed applet running in a browser. It performs priviledged operations correctly within the applet's thread/thread group. No usePolicy is specified so all permissions are being granted. No policy files are involved. If, however, java methods (within the applet) with priviledged ...

sequence alignment code problem..

5718 byte By ciksiti at 2007-9-30 16:15:44
hi....i need a help from u all out there.....actually this simple code has no error and succesfully compiled...i hope u can compile, run n see the out put .. my prob. begin like thisi put 2 sequence which the both have same length .. and the program will output the alignment path..but when i ...

applet connected to oracle

1364 byte By tekincem at 2007-9-30 16:21:27
hi everybody,i've faced with a small problem while dealing with my homework.i have a simple applet connected to oracle. if i open it with applet viewer it works correctly but when i put the applet in a html file i'm getting following errors:java.lang.NoClassDefFoundError: menu (wrong name: ...

Ugly Certificate Popup on Signed Applets

247 byte By badch0w at 2007-9-30 16:33:13
I was wondering if there was a way to modify or go around the ugly certificate pop-up that comes up for signed applets. I would even be happy writing a 'wrapper' in ActiveX so that at least windows users could see a better looking pop-up.

this is urgent

2272 byte By abr007 at 2007-9-30 17:07:57
This is the following code i am using.the following is the script i am using:<script language="javascript">function setImage(){//document.applets[0].drawStringAsImage(i); document.accusedSign1.drawStringAsImage("Accused Refused to Sign");}function captureImageFn(){//alert("inside ...

Java Sun Architect

352 byte By sumitprasadsingh at 2007-9-30 17:09:31
Hi All,Actually curretly I am working in Banglore and planning to go for Java Sun Architect Exam. I am already a Sun Certified programmer.Can any one just guide me which centre in Banglore, India is have the authorization for the exam and also guide me with the study material, which I have to ...

problem with the last jre version

365 byte By Jordi@ at 2007-9-30 17:16:30
Hi,I have a signed applet that access to the smart card towards a dll. This applets works fine in j2re 1.4.2 , but when I run this applet with the last version j2re 1.4.2_05 the applet does not work. The error that appears I think that is produced by a security problemanyone khows what is ...

can a signed applet run classes from disk?

704 byte By jas_grewal at 2007-9-30 17:38:34
Hi all,I have a signed applet jar and a signed jar file somewhere on disk (I can ensure the jar file is available on client's machine before i run the applet). My applet doesn't let me have file io access from the classes in the jar file on disk. It gives the following ...

URGENT !!!! Regarding Deploying applet and trusted certificates

865 byte By anusree at 2007-9-30 17:51:08
Hi All,Iam new to developing and deploying applets in a production environment.My present situation is like this:I have an applet that needs to access clipboard. But to do so i have two approaches:1) modify the java.policy file that generally resides in c:\Program ...

Printing through Applet

380 byte By kumarmadhu at 2007-9-30 17:57:02
In my applet I have print Button which will print the graphical content on printer. When i try to print through IE , I am getting com.ms.security.SecurityExceptionEx[]: java.io.IOException bad path: c:\mydir\java\awt\print\PrinterException.class .But I am able to print through the Netscape. ...

Pb with new JRE version

1011 byte By Rafax at 2007-9-30 18:00:32
Hi everybody,I have problem of security like other people in this forum.I follow instructions of harmmeijer in his post 524815.This solved my pb but I discovered an other one ...Shortly : I had some pb with security access.I put calls from JavaScript to Java in a thread and it works.I tested ...

Local file access with JRE 1.3.1_13

781 byte By MCorazao3 at 2007-9-30 18:07:55
I have a signed applet that creates a directory on the client machine and some files in the same directory. This applet also prints diagnostic messages to the Java Console via statements like "System.out.println(....)". This applet runs correctly on varius JRE versions (including 1.3.x and ...

signed applet + cookie?

1079 byte By veryfree at 2007-9-30 18:15:44
hello,after a search on this forum i can't get anything wich can help so i create this topic.i ve got an application wich works well.i signed the jars for make it an applet ( i can write and read preferences files on the hard disk so i'm sure that it is well signed )my probleme appear when i ...

JavaScript calling Java under JRE 1.3.1_13

705 byte By MCorazao3 at 2007-9-30 18:15:45
I have a JSP page that contains JavaScript code that calls methods in a Signed applet. This process works correctly under various Windows operating systems and JRE versions. However, when JRE 1.3.1_13 is installed, the exception show below is displayed, and the applet is unable to write to ...

Applet Deployment ! Somebody help

440 byte By anusree at 2007-9-30 18:17:51
Hi All,My appllication is an intaranet based one. It uses an applet that needs to access System clipboard.Version of JRE iam using is 1.3.0.Is modification of java.policy file allowed under production environments. I know it invokes admin overhead but its ok. Present situation we cannot go for ...

Help Please

1055 byte By DuckManis1 at 2007-9-30 18:24:58
Ok so I am working on this program for my school and we thot it was all good and ready to go but we are having major problems now. Its a signed JApplet (Thats why Im here) and it is signed because it talks to a MySQL DB. It works sometimes and then it doesn't. I found out today that if I go to ...

how to place a link to a .crt file in the HTML code?

782 byte By fermis at 2007-9-30 18:46:32
Hello,I followed the 10 famous steps for the creation of a self-signed applet. My problem is at step 10:"Place a link to the .crt file (created in step 4) in the HTML-File.This .crt file has to be opened by the browser and has to be set to trusted,as the root CA for testing is not known to the ...

Applet with HTTPS

435 byte By ramnam at 2007-9-30 18:57:00
I have an applet which works perfectly. But give ClassNotFoundException when i moved the code over to https. Basically it didn't find the class which in placed in jar. My codebase and archieve is correct as, i can download the jar f=via the url. I am suing jdk 1.4.2Do i have to sign the applet ...

Self Signing Applet

2327 byte By Brendon_Costa at 2007-9-30 19:05:05
Hi,I have been looking all over the web for some "simple" information on how to get my applet working. I have a program i have been writing that uploads files to a PHP based server. In order to do this the applet needs to be capable of reading files from the clients file system.After reading ...

certificate signing request...urgent help needed

1600 byte By Ankit_A at 2007-9-30 19:05:34
Hello Everyone,I created a self-signed certificate authority (CA) root certificate on openssl which I installed on my linux machine. Here is the commands that i used:% openssl genrsa -rand -des3 -out ca.key 1024% openssl req -new -x509 -days 365 -key ca.key -out ca.crt -config ...

Lost with granting signed applet permissions

1478 byte By tgroleau at 2007-9-30 19:09:01
Hi all,My apologies for the cross post, I have incorrectly sent this post to the jre forum but I think it is more specific to the signed aplpet forum..We need to deploy a very simple applet which sole role is to connect to a domain other than mother to send and get some data. We have a ...

read/write on the server-side

501 byte By Shader at 2007-9-30 19:35:04
I want to read/write from applet with a path " http://localhost:8080/exploded/classes/xmenu.class" to file " http://localhost:8080/exploded/content.jsp", and try using for this paths: "../content.jsp" and " http://localhost:8080/content.jsp"but it isn't running. May be I use wrong path, but then ...

Running signed applet on Java 5: Certificate not verified

470 byte By demonbreath at 2007-9-30 19:39:55
Hello!I am running my signed applet, it uses Bouncy Castle provider bcprov-jdk15-125.jar.My applet.jar is signed by my own certificate. When running from a browser, I get error message:Certificate Not Verified. Code will be treated as unsigned. Clicking on details button, read:Check leaf key ...

Unable to develop applet to detect printer name and trays of client machine

884 byte By jainsaurabh78 at 2007-9-30 20:16:15
Hi friends I want to develop an applet which will be called in a web page when user will open the web page then this applet wil detect all the printer installed on the client machine and printer name will be showed in the list box and if printer name will be selected then the corresponding ...

Please help me get this applet signed correctly: I'm going crazy with it!

1022 byte By rocketguy at 2007-9-30 20:25:17
I have been fighting for two days to get an applet signed. I am using java 1.4.2 for starters. I followed the thread with the 10 steps to self signing an applet to the letter, yet I still get an AccessControl exception when I attempt to run my applet in an IE browser. This is the link to that ...

inter-applet communication security problem

675 byte By Lucia at 2007-9-30 20:45:23
I have two applets running on different frames. I have successfully sent messages between them by using static methods and variables. Since both of them access client files (read and write) both are signed, although they reside in different jars. I need applet A to call a method, saveFile, in ...

access denied (java.io.Filepermission MyFile.txt write)

1046 byte By Soots at 2007-9-30 20:45:57
From what I understand, all a local applet needs to write to a local file is granted permission. I have 2 files. Both are located in the directory "C:\Documents and Settings\Nunya Buisness\Desktop\Documents\Chatter Applet" One is called ChatterApplet.java, which simply saves text that you type ...

Problems reading *.gif in Applets

1239 byte By vic_sk at 2007-9-30 20:56:32
Hello,I have an applet that uses rmi classes. When applet is run in web browser I cannot see *.gif images that the app1.java uses. What I tried:in jre/lib/security edited java.policy file with the following specs:grant codeBase "file:C:/Sun/AppServer/jdk/bin/*" {permission ...

Trusted Signed Applet

817 byte By DeltaCoder at 2007-9-30 21:05:56
I am trying to write an applet that can write a file. I have signed other applet running JDK & JRE 1.4.2 but now am running JDK & JRE 1.3.1. When I sign this applet and run I get following message:Unable to verify the certificate - code will be treated as ...

java.lang.SecurityException: SHA1 digest error for... PLEASE HELP!!

1787 byte By svsoft_98 at 2007-9-30 21:21:57
Hi All, I had to Change the jar file in a Custom Applet. This is what I have done1) Located the jar file on the Server that is used as an applet on the Client2) Decompiled a particular class in the jar file on the server3) Made the jar file again with jar uf ..\utils.jar ...

How to display self certificate on the client machine when applet is upload

482 byte By KrishanHar at 2007-9-30 21:26:11
Hi all,I have signed an applet that uses socket connection. Everything is OK when I upload my applet on my machine. When I click on the HTML file that contains the applet tag it shows the security certificate I have created and then it makes a connection to URL as well as socket. But when I try ...

signed JApplet and "JFrame"

6309 byte By LandWolf at 2007-9-30 21:30:25
Hi, I have a problem with an applet that must be signed. The applet contains only a button and when I press this button appears a JFrame.In this JFrame I must read and write a local file. So I signed my applet but if I accept the certificate the JFrame is not built, while if I refuse the ...

applet signed w/ self-signed cert - different behaviors w different servers

993 byte By dermite at 2007-9-30 21:37:05
Folks,I'd really appreciate your help with the following.I'd like to deploy an applet as a signed jar. Probably at least in the beginning, and maybe indefinitely, I'd like to sign it with a self-signed cert. When I've tested this under Linux, loading the applet in a browser running on my ...

Security Error: Unsigned application requesting unrestricted access to...

988 byte By agoodspellr at 2007-9-30 21:41:27
I've tried a few different methods of self-signing an existing jar file, and I keep getting the same error after Java Web Start downloads it:An error occurred while launching/running the application.Title: Rocky ClientVendor: RockyMudCategory: Security ErrorUnsigned application requesting ...

cannot load applet

1428 byte By hammu@sg at 2007-9-30 21:42:34
Hello experts, I want to load my java application into my browser, (I am using Mozilla5 & IE), I have some jar files and all are declared in the CLASSPATH in my unix workstation, but when I try to load the html file in the appletviewer I have the following message:load: ...

Problem connecting to MySQL server

712 byte By Mark_B at 2007-9-30 22:01:42
Hi there,I get the error:access denied (java.net.SocketPermission 132.146.29.42:3306 connect,resolve)My applet is signed and I have created the following java.policy file in my home directory:grant { permission java.net.SocketPermission "132.146.29.42:3306", "connect, resolve";};I have made ...

Objects

376 byte By icemantj at 2007-9-30 22:10:02
Hi all1) Can object be inserted into Vectors?2) If so, I have constructed a constructer. Let say, in this constructor I have created 2 variables;This 2 variables once inserted into vectors should it belong to elementAt(0) and elementAt(1)or should it be just elementAt(0) and thus once display ...

Certificate oddity

798 byte By CrocodileShoes at 2007-9-30 22:27:30
Can anybody explain the following:I have a array called certs that has been populated with the certificates of a signed Jar file. The first piece of code prints out the correct certificate with no problems. However, the second piece of code doesn't print anything! Other than the two strings ...

Make a new JAR file

150 byte By MyTimeIQ at 2007-9-30 23:01:16
I stored the compiled class file into a JAR file. I have now modified the java-file and compiled it. Do I have to make a new JAR file ? Thanks.

information : utility of signed applet ?

1188 byte By hugo123 at 2007-9-30 23:05:50
Hello,I have just changed my application to pass from a Microsoft JVM to a Sun JVM. The only difference remains on the signature of my applet.I changed the generation and the signature of the applet : this worked well.Though now I can see differences in the behavior around the acceptation of my ...

Asking permission?

353 byte By Julgran at 2007-9-30 23:08:52
I recall I've come across applets on the internet where I am simply asked if I will allow it to operate outside it's boundaries IE read from the local harddrive.How is this done?I have created an applet for file uploads for the web application that I am building, and now I want it to get ...

how can a trusted applet get permissions on server

1000 byte By cugopal at 2007-9-30 23:16:01
Hello all,I have just now read some tutorial about Trusted Applet and not even experimented one. So my knowledge is absolutely zero.I would like to use Trusted Applets in my environment which I describe below:I have a database server on a Linux machine. On the same machine I have Apache web ...

hot to stop child thread from javascript throw applet

321 byte By param530 at 2007-9-30 23:18:40
hi,java 1.4.2_02 usingi accessed one applet methodfrom javascript... within that applet's method i want to stop one child thread. for this i callled that thread's stop method.....that time i get following exception ......i dont know anything about policy tool plz give me sollution ...

hot to stop child thread from javascript throw applet

1312 byte By param530 at 2007-9-30 23:18:41
hi,java 1.4.2_02 usingi accessed one applet methodfrom javascript... within that applet's method i want to stop one child thread. for this i callled that thread's stop method.....that time i get following exception ......i dont know anything about policy tool plz give me sollution .. The ...

Applet JVM

329 byte By NHV at 2007-9-30 23:20:41
Hi all,I want to write an applet, but I want to know if the client site have to download the JVM on his machine or the JVM it's already in the Browser.If the client have to download the JVM can I do something easily in the code to download directly the JVM so that the client don't have to ...

java.security.AccessControlException: access denied (java.lang.RuntimePermi

199 byte By param530 at 2007-9-30 23:23:36
hi,i got this type of exception while i suspend thread which is receiving RTP streamjava.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)

javax.comm in applet

2605 byte By DavesMan at 2007-9-30 23:31:20
Hi,I need to use javax.comm package in my applet (just to send a certain byte-sequence to specific serial port). The problem is, that javax.comm.CommPortIdentifier cannot find the specific port. It does not even enumerate any. The same code run as normal app. works fine. I think that perhaps ...

Applet problem

2181 byte By eac7b14a at 2007-9-30 23:33:31
I use applet to send a JMS message, but I got the follow error. I have used jar to make my applet class file into jar. I have used keytool to generate the key. I have used jarsigner to sign the key to the jar. Is there any thing missing ? Error while creating JNDI context: ...

i read systems propertis it was null

140 byte By param530a at 2007-9-30 23:38:29
i read system propertiesex java.version,java.vendor . etcthhrow main function butall are null why?