SYMPTOMS:
- When you try to run Fingerprint SDK Java library from an Applet, you get the message "java.lang.SecurityException: Unable to create temporary file" in the java console;
CAUSE:
- You have granted no rights to the applet. You have to sign it.
SOLUTION:
- You have to sign the applet to grant permissions for copying files and loading libraries.
- There are 2 ways to get the security keys/certificates:
- You can buy one from a certification company. This way, your software will be automatically trusted by third-parties.
- You can create your own certificate (self-signed certificate). This way, anyone who tries to use your software will be prompted something like "This software is signed by an unknown source".
- Your end-used surely won't like if you use a self-signed certificate, as the warning messages will make your software look like a virus or something of that kind.
But, for the first tests, using self-signed certificates is much easier and cheaper: You can create your own certificate using a jdk tool called keytool.
- To create the keys/certificate just execute this:
>> keytool -genkey -alias MyKeyName
- It will ask your name, company, city, etc, and, of course, a password.
- After you have created a key, you just have to use it to sign your jar file:
>> jarsigner MyJarFile.jar MyKeyName
- It will prompt you for the password, and sign the jar file.
APPLIES TO:
- Fingerprint SDK Java 2007, GrFinger 4.5

