6 Step Signed Applet for IE

last week I have the problem for Signed Applet,

and I hope this will Help You.

but, I am sorry

for Netscape, it's not done yet.

So, here are the Step for IE

1. Create you java code (takepic.java)

in your code write the securiy permission

if(Class.forName("com.ms.security.PolicyEngine") != null)

{

mlabel.setText("Done IE");

PolicyEngine.assertPermission(PermissionID.UI);

}

write your permission you want at the PermissionID target

2. Create Cab File

cabarc -p -r -s 6144 N takepic.cab takepic.class

3. Create certificate

makecert -sk private -n "cn=I Gusti Putu Anom" anom.cer

4.create spc from certificate

cert2spc anom.cer anom.spc

5. create ini file contains permission you want (example perms.ini)

[com.ms.security.permissions.PrintingPermission]

[com.ms.security.permissions.PropertyPermission]

Unrestricted=false

IncludedProperties=java.vendor

[com.ms.security.permissions.ThreadPermission]

AllThreadGroups=true

AllThreads=true

[com.ms.security.permissions.UIPermission]

ClipboardAccess=true

TopLevelWindows=true

NoWarningBanners=true

FileDialogs=true

EventQueueAccess=true

6. signcode -j javasign.dll -jp perms.ini -spc anom.spc -k private takepic.cab

for Netscape, you must use PrivilegeManager and you must create a jar file

if(Class.forName("netscape.security.PrivilegeManager") != null)

{

PrivilegeManager.enablePrivilege("SuperUser");

}

you can find package for netscape at C:\Program Files\Netscape\Communicator\Program\java\classes\java40.jar

for IE, you can find it at C:\WINNT\java\Packages\GI53BPN9.zip

you can find the article at :

http://www.ddj.com/articles/1999/9902/9902h/9902h.htm

regards,

I Gusti Putu Anom A

Software Engineer

Balicamp

Bali - Indonesia

[2019 byte] By [gusti_anom] at [2007-9-26 1:17:17]
# 1
where can I get the tools you use in the steps you take to sign your applet for IE? For example, where can I get the com.ms.security package?thanks for your stepsIve been looking for good solid steps for this for a very long time
armandfcdx at 2007-6-29 0:46:35 > top of Java-index,Security,Signed Applets...
# 2

I used the file from C:\WINNT\java\Packages\ folder.

I used GI53BPN9.zip (My OS is Windows 2000)

there are 8 files on this folders

Windows 2000 and Windows NT has diferrent name for the package file.

I think you should use all the zip file from "C:\WINNT\java\Packages\", Because I'm not sure which file contain com.ms.security on your computer.

gusti_anom at 2007-6-29 0:46:35 > top of Java-index,Security,Signed Applets...
# 3
hi,armandfcdxyou can find that tools in ms sdk for java 4.0.you may download it at http://www.microsoft.com/java/security Lucky!!!
wflm at 2007-6-29 0:46:35 > top of Java-index,Security,Signed Applets...