dyma82
asked on
Sign Applets
I coded an applet which writes a executable file to the client's directory system and then executes this file.
How can I sign this applet, so that it could work.
Can anybody give me the whole procedure to do this???
I read about in Sun's site and it was really confusing.
Thanks in advance.
How can I sign this applet, so that it could work.
Can anybody give me the whole procedure to do this???
I read about in Sun's site and it was really confusing.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi,
Just of the bat, you are going to need a certificate first (thawte, verisign), you then need to
import that into netscape and IE.
You will need extra security source code for Netscape:
import netscape.security.Privileg eManager;
Your Code . . . . . . .
System.out.println("Trying to acquire permission to read system files...");
try
{
PrivilegeManager.enablePri vilege("Un iversalFil eRead");
// PrivilegeManager.enablePri vilege("Su perUser");
System.out.println("\tSucc ess! Privilege is enabled.");
}
catch (netscape.security.Forbidd enTargetEx ception ee)
{
System.out.println("\tFail ed! Permission to read system files denied by user.");
}
catch (Exception pe)
{
System.out.println("\tFail ed! Unknown exception while enabling privilege.");
pe.printStackTrace();
}
You are going to need the netscape signtool to create and sign your jar for netscape
and you will need the cabsdk (cabarc and signcode) to create and sign the cab file
for IE.
These methods are for 1.1 applets I think the process has possibly changed for 1.2
applets, but hey, who wants to deploy a swing applet on the internet, only 2% of users
would be able to use it and the others would all need to upgrade Internet connections,
VM's and the applets would still be to slow, what I am saying is, if an applet then keep
it AWT.
Of couse the above mentioned URL's will give you more detailed info.
Hope this helps
Malcolm
Just of the bat, you are going to need a certificate first (thawte, verisign), you then need to
import that into netscape and IE.
You will need extra security source code for Netscape:
import netscape.security.Privileg
Your Code . . . . . . .
System.out.println("Trying
try
{
PrivilegeManager.enablePri
// PrivilegeManager.enablePri
System.out.println("\tSucc
}
catch (netscape.security.Forbidd
{
System.out.println("\tFail
}
catch (Exception pe)
{
System.out.println("\tFail
pe.printStackTrace();
}
You are going to need the netscape signtool to create and sign your jar for netscape
and you will need the cabsdk (cabarc and signcode) to create and sign the cab file
for IE.
These methods are for 1.1 applets I think the process has possibly changed for 1.2
applets, but hey, who wants to deploy a swing applet on the internet, only 2% of users
would be able to use it and the others would all need to upgrade Internet connections,
VM's and the applets would still be to slow, what I am saying is, if an applet then keep
it AWT.
Of couse the above mentioned URL's will give you more detailed info.
Hope this helps
Malcolm
Any Progress dyma82????
dyma82,
These questions are still open and our records show you logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20008525
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20009347
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20075395
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20078563
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20102822
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20104989
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20119300
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20127065
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20146913
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20149928
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20219951
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20261206
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20265745
EXPERTS: Please leave your thoughts on this question here.
Thanks,
Netminder
Community Support Moderator
Experts Exchange
These questions are still open and our records show you logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days.
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20008525
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20009347
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20075395
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20078563
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20102822
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20104989
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20119300
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20127065
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20146913
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20149928
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20219951
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20261206
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20265745
EXPERTS: Please leave your thoughts on this question here.
Thanks,
Netminder
Community Support Moderator
Experts Exchange
i was first ;)
Admin notified of User neglect. Force-accepted by
Netminder
Community Support Moderator
Experts Exchange
Netminder
Community Support Moderator
Experts Exchange
A very nice article with diagrams
Jimmy