java - Can't run JApplet - Impossible to load library for security problems -
java - Can't run JApplet - Impossible to load library for security problems -
from days i'm trying reach launch that project.
is java project create digital signature of file.
what i've done centos distribution ( 64bit ) is:
create certificate using
keytool -genkey -keyalg rsa -alias alias -keystore sign_javafirma.keystore -storepass password -validity 365 -keysize 2048
edit buildjar.xml changing alias , password 1 selected on point 1.
install icedtea-web (yum install icedtea-web)
make //it launch ant generate jar.
after jar correctly generated , signed, seek applet html:
<applet code="it.treviso.provincia.freesigner.applet.freesignersignapplet" type="application/x-java-applet" width="500" height="200"> <param name="archive" value="freesignerapplet.jar" /> <!-- file sign. result on same directory --> <param name="filename" value="test.pdf" /> <!-- path of library of card reader --> <param name="devlib" value="x64/libbit4ipki.so" /> <!-- url called after completion of sign, passing hash of document parameter --> <param name="callback" value="http://pratiche.prov.tv.local/callback.php?key=blablabla" /> <strong> browser not have java plug-in. </strong> <br /> <a href="http://java.sun.com/products/plugin/downloads/index.html"> latest java plug-in here. </a> </applet> </body> </html>
where x64/libbit4ipki.so library downloaded this website.
when seek go page has load applet, after request launch insicure applet, have message: "impossible load library security problems" , in console don't have nothing.
how can reach launch project?
thanks!!!
problem here:
create certificate using
keytool -genkey -keyalg rsa -alias alias -keystore sign_javafirma.keystore -storepass password -validity 365 -keysize 2048
this certificate used ant build buildjar.xml sign jar:
<signjar destdir="signed" alias="alias" storepass="password" keystore="sign_javafirma.keystore"> <path> <fileset dir="." includes="freesignerapplet.jar" /> </path> <flattenmapper /> </signjar>
this self signed certificate , self signed certification not ok anymore signing applets. need code signing certificate trusted source (ie verisign, thawte, entrust, etc).
java applet digital-signature
Comments
Post a Comment