首页 电脑 电脑学堂 查看内容

【黑基原创】How to sign the java applet in firefox

2005-8-23 10:07 712 0

摘要: 【黑基原创】How to sign the java applet in firefox 作者:意识[HackBase]    How to sign the ja...
关键词: nbsp jar file class jarname certificate you keystore keyname sign

【黑基原创】How to sign the java applet in firefox 作者:意识[HackBase]    How to sign the java applet using the keytool , jar , and jarsigner with in firefox 1.We have to create a  key pairs  in the default keystore In command line typekeytool –genkey –alias keyname (keyname is your key pairs name, which you give)And follow the step to greate the keyYou will ask to give a password for the keystoreThe key pairs will store in a .keystore file in the user directory  e.g. C:\Documents and Settings\S3073989 2. We export the key to get a self signed certificateIn the command line type keytool –export –alias keyname –file anyname.crt(anyname is the certificate name you given) Now you get a   self signed certificate 3.jar the class file In the file class files directory typejar –cvf jarname.jar *.class(jarname is the name for the .jar file) 4. sign the jar with your  certificatejarsigner jarname.jar keynameYou need to type in the password In the applet tab include that archive="jarname.jar"  e.g. <applet code=example.class width="200" archive="ex.jar" height="200"  ></applet> Each time you compiled the class You have to jar the class file again and sign the jar using the  jarsigner You can copy that .keystore file and export that to aa self signed certificate in another machine.
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部