Jarsigner errors
I am trying to create and sign a certificate to run an applet. This is all done through command line, and the certificate is created by:
keytool -genkey -keyalg rsa -alias signFiles
keytool -export -alias signFiles -file tapestry
then the jar is created with:
c:/j2sdk1.4.2_08/bin/jar cf ../applets_1_0_new.jar *
and finally the attempt to sign is using:
c:/j2sdk1.4.2_08/bin/jarsigner -keystore ../../java/certificate/tapestry -storepass ***** -keypass **** -signedjar applets_1_0.jar applets_1_0_new.jar signFiles
The problem is that this generates an error:
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format
I can not get this to work, and no one at my work has ever used this before....
Please help!!
You actually use your private key to sign jar files. The -export option exports the public key/certificate, there is no private key in that file. It can not be used for signing. (Please check the keytool documentation if this isn't clear.)
You should be signing using the "signFiles" alias in your default keystore.
Similar Messages
-
Jarsigner Error : Keystore Load
I am trying to sign my .jar files using the code as given below but it gives me error -
Jarsigner error : java.runtime.exception keystore : Load "c:\xyz\.store" <The system cannot find the file specified>
The code i am using to sign my jar files is
jarsigner myjar.jar -alias auto1 -keystore local.keystore -storepass mypasslocal.keystore file is already been generated and is under the folder \xyz
Still it is not able to load the keystore file. Could it be a password issue - keypass or i am missing something.
Any inputs would be highly appreciated.
ThanksI have been able to solve the problem. The order in which you write on command line is very important. It should have been
jarsigner -keystore local.keystore -storepass mypass myjar.jar -alias auto1 -
Error while generating JAR files during upgrade from 11.5.9 to 11.5.10
Hi,
We are getting the following issue after applying 11.5.9 CU2 patch set during the process of upgrade from 11.5.9 to 11.5.10.
- 3171663: 11.5.9 Oracle E-Business Suite Consolidated Update 2
Executing: /u01/app/tinst/tinstcomn/util/java/1.6/jdk1.6.0_18/bin/java -Djava.security.egd=file:/dev/urandom sun.security.tools.JarSigner -keystore ******** -storepass ******** -keypass ******** -sigfile CUST -signedjar /u01/app/tinst/tinstcomn/java/oracle/apps/fnd/jar/fnddssgraphgui.jar.sig /u01/app/tinst/tinstcomn/java/oracle/apps/fnd/jar/fnddssgraphgui.jar.uns CUSTOMER
ERROR: JarSigner subcommand exited with status 1
No standard output from jarsigner
JarSigner error output:
Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner
Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: sun.security.tools.JarSigner. Program will exit.
Can you please advice regarding this issue....????
Regards,
Sreenivasulu.Please see these docs.
Generate Jar File causes NoClassDefFoundError sun/security/tools/JarSigner [ID 393306.1]
Generating Jar Files Fails with a NoClassDefFoundError: sun/security/tools/JarSigner Error [ID 801014.1]
Thanks,
Hussein -
Error when trying to sign a .apk file
I am having a problem with signing my unsigned .apk file.
When ever I try to enter this command "`jarsigner –verbose –sigalg MD5withRSA –digestalg SHA1 –keystore my-release-key.keystore AmazonInAppSample-release-unsigned.apk alias_name`"
I get this error:
jarsigner error: java.lang.RuntimeException: keystore load: /Users/user7259/.keystore (No such file or directory)
I executed this command with my current directory being the bin folder where my keystore and .apk file are found.
I also made sure I entered the correct password.
If I try to enter a blank pass i get this message:
jarsigner: you must enter key password
If I try to enter a correct or invalid password, I get this message:
jarsigner error: java.lang.RuntimeException: keystore load: /Users/user7259/.keystore (No such file or directory)
Update:
Do I need Java JDK 7 installed to use the –sigalg MD5withRSA –digestalg SHA1 ?In computer search. You can also press windows key + R and paste there.
-
Unable to get jarsigner to sign jar file using pkcs11 smartcard
I'm using a JDK jdk1.6.0_14 with a datakey smartcard with the below info in pkcs11.cfg file:
name = DK330
library = c:\windows\system32\dkck232.dll
I have also configured the java.security file to include the security.provider.10=sun.security.pkcs11.SunPKCS11 c:/pkcs11.cfg
I have my environment set for the below to keep it simple as possible:
JAVA_HOME=C:\Program Files\Java\jdk1.6.0_14
CLASSPATH=C:\Program Files\Java\jdk1.6.0_14\lib
PATH=C:\Program Files\Java\jdk1.6.0_14\bin;c:\windows;c:\windows\system32
1) I am able to Confirm that the secret key is present in the keystore
keytool -v -list -keystore NONE -storetype PKCS11 -storepass xxxxxx
Keystore type: PKCS11
Keystore provider: SunPKCS11-DK330
Your keystore contains 1 entry
Alias name: CS.NOLSC.002's U.S. Government ID
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=CS.NOLSC.002, OU=USN, OU=PKI, OU=DoD, O=U.S. Government, C=US, OU=PKI, OU=DoD, O=U.S. Government, C=US
Issuer: CN=DOD CA-14, OU=PKI, OU=DoD, O=U.S. Government, C=US
Serial number: 3e8e
Valid from: Mon Feb 05 14:53:22 EST 2007 until: Thu Feb 04 14:53:22 EST 2010
Certificate fingerprints:
MD5: 9D:34:AF:D8:DE:18:15:78:D6:88:3D:37:83:FA:DC:E8
SHA1: 8A:BB:39:D5:2B:45:F7:CE:A3:93:C5:71:5C:36:DC:FE:3F:B4:7D:9A
Signature algorithm name: SHA1withRSA
Version: 3
Extensions:
#1: ObjectId: 2.5.29.15 Criticality=true
KeyUsage [
DigitalSignature etc
2) When I try to sign the applet using the below commands I get the same errors:
command 1:
jarsigner -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11 -providerArg ${java.home}/lib/security/pkcs11.cfg sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"
I get this error::
jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
command 2:
jarsigner -verbose -keystore NONE -storetype PKCS11 -storepass xxxxxx sfilechooser.jar "CS.NOLSC.002's U.S. Government ID"jarsigner error: java.security.ProviderException: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_ATTRIBUTE_TYPE_INVALID
I can also confirm the jar file that I'm trying to sign is unsigned using the below command without problem.
C:\Program Files\Java\jdk1.6.0_14\bin>jarsigner -verify -verbose -certs -keystore NONE -storetype PKCS11 sfilechooser.jar
Enter Passphrase for keystore:
0 Wed Jul 08 09:36:06 EDT 2009 META-INF/
71 Wed Jul 08 09:36:06 EDT 2009 META-INF/MANIFEST.MF
4227 Tue Jun 09 09:56:20 EDT 2009 DirList.class
0 Wed Jul 08 09:29:52 EDT 2009 FileChooserPackage/
4728 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/DirUtil.class
809 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTFileDialogThread.class
765 Fri May 29 13:05:42 EDT 2009 FileChooserPackage/FileChooserBean$AWTSaveDialogThread.class
819 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FileChooserBeanThread.class
1015 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$FormsDecoderException.class
815 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean$SaveFileChooserThread.class
17198 Tue Jun 09 09:56:20 EDT 2009 FileChooserPackage/FileChooserBean.class
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar is unsigned. (signatures missing or not parsable)
======================================
What could be my problem to get my applet signed? I'm at a loss.I found the problem.
I was able to use jarsigner correctly after I backed off on the GemPlus driver version from v4.7.062 file name dkck232.dll to the previous version of dkck201.dll at v4.7.062. -
Hi I am configuring webutil on xp machine with IDS 10g R2 and oracle DB 10g R2, I have followed the procedure and when signing the webutil I get the following error.. and after that when I run my form it hangs totally
C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\devsuitehome_1\forms\java\fr
mwebutil.jar
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> alr
eady exists
There were warnings or errors while generating a self signing certificate. Pleas
e review them.
Backing up c:\devsuitehome_1\forms\java\frmwebutil.jar as c:\devsuitehome_1\form
s\java\frmwebutil.jar.old...
1 file(s) copied.
Signing c:\devsuitehome_1\forms\java\frmwebutil.jar using key=webutil2...
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.
There were warnings or errors while signing the jar. Please review them.
C:\DevSuiteHome_1\forms\webutil>sign_webutil.bat c:\devsuitehome_1\forms\java\ja
cob.jar
Generating a self signing certificate for key=webutil2...
keytool error: java.lang.Exception: Key pair not generated, alias <webutil2> alr
eady exists
There were warnings or errors while generating a self signing certificate. Pleas
e review them.
Backing up c:\devsuitehome_1\forms\java\jacob.jar as c:\devsuitehome_1\forms\jav
a\jacob.jar.old...
1 file(s) copied.
Signing c:\devsuitehome_1\forms\java\jacob.jar using key=webutil2...
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.
There were warnings or errors while signing the jar. Please review them.
C:\DevSuiteHome_1\forms\webutil>
Pls give me wayforward to overcome this error.
Rgdssorry to mention...i tried both way.. here it is...
I:\DevSuiteHome_1\jdk\bin>I:\devsuitehome_1\forms\webutil\sign_webutil.bat I:\DevSuiteHome_1\fo
rms\java\frmwebutil.jar
Generating a self signing certificate for key=webutil2...
keytool error: java.io.FileNotFoundException: \.keystore (A required privilege is not held by th
e client)
There were warnings or errors while generating a self signing certificate. Please review them.
Backing up I:\DevSuiteHome_1\forms\java\frmwebutil.jar as I:\DevSuiteHome_1\forms\java\frmwebuti
l.jar.old...
*1 file(s) copied.*
Signing I:\DevSuiteHome_1\forms\java\frmwebutil.jar using key=webutil2...
jarsigner error: java.lang.RuntimeException: keystore load: I:\.keystore (The system cannot find
the file specified)
There were warnings or errors while signing the jar. Please review them.
I:\DevSuiteHome_1\jdk\bin> -
Error while signing jacob.jar in FMW 11g
Hi,
after setting the PATH like:
set PATH=C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\jdk\bin;%PATH%
while signing the jacob.jar file for the first time after installing 11g Forms in Windows the following error occurs:
C:\Dokumente und Einstellungen\bten>C:\Programme\ORACLE11g\Oracle\Middleware\ins
tances\FRinst\bin\sign_webutil.bat C:\Programme\ORACLE11g\Oracle\Middleware\PFRD
11g\forms\java\jacob.jar
Generating a self signing certificate for key=webutil2...
Keytool-Fehler: java.lang.RuntimeException: Verwendungsfehler: 360 ist kein g³lt
iger Befehl.
There were warnings or errors while generating a self signing certificate. Pleas
e review them.
Backing up C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar
as C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar.old...
1 Datei(en) kopiert.
Signing C:\Programme\ORACLE11g\Oracle\Middleware\PFRD11g\forms\java\jacob.jar us
ing key=webutil2...
jarsigner error: java.lang.RuntimeException: keystore load: C:\Dokumente und Ein
stellungen\bten\.keystore (Das System kann die angegebene Datei nicht finden)
There were warnings or errors while signing the jar. Please review them.
C:\Dokumente und Einstellungen\bten>
What is the reason, and how can I solve this?
Thanks BeaPerhaps you are using old WLST code (used for OSB 10g), with OSB 11g.
The ALSBConfigurationMBean (com.bea.wli.sb.management.configuration.ALSBConfigurationMBean) Interface in the com.bea.wli.sb.management.configuration package in the Oracle Fusion Middleware Java API Reference for Oracle Service Bus includes example code illustrating how to import and export Oracle Service Bus 11g configurations, how to change environment values, how to query resources, and so on. Please find it here -
http://download.oracle.com/docs/cd/E14571_01/apirefs.1111/e15033/toc.htm
Regards,
Anuj -
Keystore error signing jar file
I am having trouble signing a jar file. I have deleted and recreated the keystore file. Has anyone encountered this error before:
[signjar] jarsigner error: java.lang.RuntimeException keystore load: Not logged inSee my update in this thread:
error signing jar file -
Use sign_webutil.sh error
I want to sign frmwebutil.jar and jacob.jar with sign_webutil.sh
but it show the message
============ message start =================================
sign_webutil.sh /u01/vis/apps/tech_st/10.1.2/forms/java/jacob.jar
Generating a self signing certificate for key=webutil2...
Warning: webutil2 already present in /u01/vis/apps/tech_st/10.1.2/.keystore
\n
Backing up /u01/vis/apps/tech_st/10.1.2/forms/java/jacob.jar as /u01/vis/apps/tech_st/10.1.2/forms/java/jacob.jar.old...
\n
Signing /u01/vis/apps/tech_st/10.1.2/forms/java/jacob.jar using key=webutil2...
jarsigner error: gnu.javax.crypto.keyring.MalformedKeyringException: incorrect magic
...successfully done.
============ message end =================================
I have no idea with it , how can I check what did i done wrong ?
does anyone can help me?
============ resolved ====================================
in sign_webutil.sh I add the
PATH=$ORACLE_HOME/jdk/bin:$PATH
it run the sign_webutil.sh jacob.jar & frmwebutil.jar successfully
Edited by: Marc1123 on Nov 11, 2008 1:22 AMThe oracle document says:
You need to sign both the frmwebutil.jar and the jacob.jar with the same digital certificate.
This is a one-time operation, which allows your end-users to trust that the JACOB routines can access client side resources.
If you do not have an existing signing certificate or are not sure how to go about signing Jar files, scripts have been supplied
in the forms/webutil directory for you.
And if I remeber well, there should be a README.html in a doc /dir -
How to use Java code signing certificate in oracle 11i
Hello,
I am try to configure java code signing certificate in 11.5.10.2 application. we got java sign certificate from verisgin. SA's imported the certificate and created alias XXX_XXX with password and passphrase.
I am able to see the my certificate. keytool -list -v -keystore xxx_xxxx.jks -storepass Password.
how do I use it. I am using Enhance Jar Signing for EBS DOC ID 1591073.1.
could you please give me some advice on it?
Thanks
PrinceHussien,
I find out apps keystore keypassword and storepassword, I imported the java code sign certificate. I generated Jar files through adadmin, but I am getting warning error
adogif() unable to generate Jar Filers under JAVA_TOP.
executing /usr/jdk/jdk1.6.0_45/bin/java sun.security.tools.JarSigner keysotre **** -sigfile CUST Signer /apps/......
Error JarSigner subcommand Exited With status 1.
No standard output from jarsigner JarSigner error output: Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/JarSigner Caused by: java.lang.ClassNotFoundException: sun.security.tools.JarSigner at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: sun.security.tools.JarSigner. Program will exit. WARNING: The following path(s), defined in /apps2/property/product/tst/appl/cz/11.5.0/java/make/czjar.dep as elements of the output: oracle/apps/cz/runtime/tag WARNING: Copying cztag.lst from the old fndlist.jar ... About to Analyze flmkbn.jar : Fri Nov 22 2013 10:45:51
Please let me know if you have any idea. Thanks Prince -
The .keystore file now cannot be found (No such file or directory)
hi,
so, I'm trying to sign a JAR file connected to an applet.
I got to creating the keystore and had a "where do you want to store it? and what do you want to call it?" messages.
I saved it as '.keystore' and was warned by the system that files beginning with '.' are invisible.
I clicked ok (thinking the compiler should be able to 'see' it) and now whenever I try to sign anything the Terminal tells me:
jarsigner error: java.lang.RuntimeException: keystore load: /Users/spikenigma/.keystore (No such file or directory)
It doesn't matter how many other keystores I create, it looks for it in said directory and throws up an error.
I've tried everything
HELPOk, I'll be as specific as possible and maybe you can tell where I am going wrong. I am on a Mac.
1)
I have a JAR file called csvjdbc.jar . It is a driver that enables offline SQL operations of sorts on tabular data.
It works perfectly when loaded in the classpath both dynamically and at runtime.
The contents of it's manifest file are, as expected:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.1
Created-By: 1.6.0_22-b04 (Sun Microsystems Inc.)
2)
A test of csvjdbc.jar to check if it is already signed returns that it is not, as expected:
(input)
jarsigner -verify csvjdbc.jar
(input)
(output from terminal)
jar is unsigned. (signatures missing or not parsable)
(output from terminal)
3)
I want to sign the jar file so that I can load said JAR file in an applet I have not yet created.
4)
My steps are:
(navigate to the folder via the terminal)
cd desktop
cd progamming
cd java
etc….
(navigate to the folder via the terminal)
(try to sign the jar)
jarsigner csvjdbc.jar spikenigma
(try to sign the jar)
(response from terminal)
Enter Passphrase for keystore:
(response from terminal)
(entered passphrase)
************** (censored)
(entered passphrase)
(response from terminal as previously mentioned)
/Users/spikenigma/.keystore (No such file or directory)
(response from terminal as previously mentioned)
(Ok, let's create another keystore in a different location)
keytool -genkey -alias signFiles -keystore thekeystore
(Ok, let's create another keystore in a different location)
(answer standard questions)
Enter keystore password:
Re-enter new password:
What is your first and last name?
What is the name of your organizational unit?
What is the name of your organization?
What is the name of your City or Locality?
What is the name of your State or Province?
What is the two-letter country code for this unit?
(answer standard questions)
(so, we try signing again)
jarsigner csvjdbc.jar spikenigma
(so, we try signing again)
(enter the passphrase)
Enter Passphrase for keystore:
(enter the passphrase)
(response from terminal as previously mentioned)
jarsigner error: java.lang.RuntimeException: keystore load: /Users/spikenigma/.keystore (No such file or directory)
(response from terminal as previously mentioned) -
Problem with Sun PKCS#11 Provider and Ativcard smart card.
Hi,
I'm trying to make a signature with a smartcard.
I have no problem signing with my card in applications such as Microsoft Office, Outlook (they probably use CAPICOM or MS CryptoAPI).
There is only one certificate on my card with non extractable pair of keys.
When I`m using Java based application I have the following problem:
I have Java 1.5.0 installed, and according to the reference guide on:
http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html
I configured "Sun PKCS#11 Provider".
In file:
%JAVA_HOME%/lib/security/java.security I inserted the following lines:
# Configuration for security providers 1..6 omitted
security.provider.7=sun.security.pkcs11.SunPKCS11 C:/pkcs11.cfg
In my case (I`m using ActivCard) The file "C:/pkcs11.cfg" contains:
name = ActivCard
library = c:\windows\system32\acpkcs211.dll
After that I try tu use configured provider with keytool.exe from jsdk.
In cmdline:
c:\Program Files\Java\jdk1.5.0_06\bin>keytool.exe -keystore NONE -storetype PKCS11 -list
Enter keystore password: 1111
Keystore type: PKCS11
Keystore provider: SunPKCS11-ActivCard
Your keystore contains 1 entry
Cinek's dp ID, keyEntry,
Certificate fingerprint (MD5): 36:19:DD:01:2E:A2:C5:F6:51:44:03:74:14:D5:62:C0
So till now everything looks ok. Certificate is accessible.
But when I trying to use jarsigner.exe to sign something:
c:\Program Files\Java\jdk1.5.0_06\bin>jarsigner.exe -keystore NONE -storetype PKCS11 D:\Applet.jar "Cinek's dp ID"
Enter Passphrase for keystore: 1111
jarsigner error: java.lang.NullPointerException
I`ve got the java.lang.NullPointerException !
To find reason of the exception I`ve written simple application, which signs a byte array:
import java.security.KeyStore;
import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.Signature;
import java.security.cert.Certificate;
import java.util.Enumeration;
public class Main {
public static void main(String[] args) throws Exception {
PrivateKey privkey = null;
char[] pin = { '1', '1', '1', '1' };
KeyStore smartCardKeyStore = KeyStore.getInstance("PKCS11");
smartCardKeyStore.load(null, pin);
Enumeration aliasesEnum = smartCardKeyStore.aliases();
if (aliasesEnum.hasMoreElements()) {
String alias = (String) aliasesEnum.nextElement();
privkey = (PrivateKey) smartCardKeyStore.getKey(alias, null);
byte[] aDocument = new byte[100];
Signature signatureAlgorithm = Signature.getInstance("SHA1withRSA");
signatureAlgorithm.initSign(privkey);
signatureAlgorithm.update(aDocument);
byte[] digitalSignature = signatureAlgorithm.sign();
When I`ve run this application in last line in method signatureAlgorithm.sign() I got:
Exception in thread "main" java.lang.NullPointerException
at java.math.BigInteger.modPow(Unknown Source)
at sun.security.rsa.RSACore.crtCrypt(Unknown Source)
at sun.security.rsa.RSACore.rsa(Unknown Source)
at sun.security.rsa.RSASignature.engineSign(Unknown Source)
at java.security.Signature$Delegate.engineSign(Unknown Source)
at java.security.Signature.sign(Unknown Source)
at Main.main(Main.java:31)
In debug, before this exception variables are:
alias= "Cinek's dp ID"
privkey =
SunPKCS11-ActivCard RSA private key, 1024 bits (id 192168768, token object, not sensitive, extractable)
modulus: 112271510887039102410124262012976131016781096451891854145879061791454872222254764386718257162446565027910080375427552248069203548913907633164297672417327888344423061606707834842776634133861005271620794248782338105033496749719965719732501903618453514554701005390412127008091861831421936757053019877456102263703
public exponent: 65537
private exponent: null
prime p: null
prime q: null
prime exponent p: null
prime exponent q: null
crt coefficient: null
As you can see, private key has extractable attribute set, what is wrong. Attribute is set and key has no values.
I think that can be the reason of NullPointerException. (Maybe when extractable = true, sign() methods expects key values filled).
So, I can not sign anything.
I tryed to add some additional attributes to file "C:/pkcs11.cfg":
attributes(*,CKO_PRIVATE_KEY,*) = {
CKA_EXTRACTABLE = false
but with no effect. Key was still extractable.
Can you help me to solve this problem?
PS. I`m using acpkcs211.dll (v3.2.102.0) as an implementation of PKCS#11. (Activcard says that it is PKCS#11 v2.11 implementation)
PS2. Sorry for my englishCan I ask you one question?
Which driver did you specify? I mean the smarcard reader driver or the smartcard itself driver?
If the second, does it come along with the card? because as far as I know I just got the smart card but no software at all (apart the smartcard reader driver).
Can you help me out with this?
thanks in advance,
Marco -
Jdk upgradation to 1.6.
Hi,
while upgradation of jdk 1.6 i got below error
*******FATAL ERROR*******
PROGRAM : /prodappl/fnd/11.5.0/patch/115/bin/txkSetJDKCfg.
pl(/prodappl/fnd/11.5.0/bin/txkrun.pl)
TIME : Wed Jan 30 09:59:20 2008
FUNCTION: TXK::RunScript::getjavaCmd [ Level 1 ]
ERRORMSG: Invalid JDK TOP: /prodcomn/util/jre/1.1.8
=======================
i found similar doc Upgrading To Jdk 6.0 Txkrun.Pl Errors with ERRORMSG: Invalid JDK TOP [ID 551092.1]
with reference of above doc ,which value i have to set for s_jre
Note:my jdk installation location is c:\jdk60
Thanks
With Regards
A-ZHi
it is successfully completed but while generation jar file got below error
Generating any out of date or missing jar files.
Signing product JAR files in JAVA_TOP -
e:\oracle\prodcomn\java
using entity Customer and certificate 1.
Successfully created javaVersionFile.
Generating product JAR files in JAVA_TOP -
e:\oracle\prodcomn\java with command:
adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @e:\oracle\prodappl\admin\PROD\o
Error:
Program exited with status 1
Cause: The program terminated, returning status code 1.
Action: Check your installation manual for the meaning of this code on this oper
Failed to generate product JAR files in JAVA_TOP -
e:\oracle\prodcomn\java.
adogjf() Unable to generate jar files under JAVA_TOP
Backing up restart files, if any......Done.
You should check the file
e:\oracle\prodappl\admin\PROD\log\adadminjargen4.log
for errors.
log file information .......................................
WARNING: The following path(s), defined in e:\oracle\prodappl\pon\11.5.0\java\make\ponjar.dep as elements of the output file ponam.jar, could not be found in any area:
oracle/apps/pon/auctions/monitor/XAxisFormatter
About to Analyze mstjar.jar : س ينا 29 2011 14:01:55
Up-to-date : mstjar.jar
Done Analyzing mstjar.jar : س ينا 29 2011 14:01:56
About to Analyze fndlist.jar : س ينا 29 2011 14:01:56
About to Generate fndlist.jar : س ينا 29 2011 14:01:56
Done Generating fndlist.jar : س ينا 29 2011 14:01:56
About to Sign fndlist.jar : س ينا 29 2011 14:01:56
ERROR: JarSigner subcommand exited with status 1
JarSigner standard output:
jarsigner error: java.lang.RuntimeException: keystore load: E:\oracle\prodappl\admin\adkeystore.dat (The system cannot find the file specified)
No error output from jarsigner
Done Analyzing fndlist.jar : س ينا 29 2011 14:01:56
ERROR: The following jars failed to get generated properly.
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndforms.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndewt.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndewtpv.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndaol.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndhier.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\wfapi.jar
e:\oracle\prodcomn\java\oracle\apps\wip\jar\wipmedia.jar
e:\oracle\prodcomn\java\oracle\apps\wip\jar\wipgantt.jar
e:\oracle\prodcomn\java\oracle\apps\cs\jar\cs.jar
e:\oracle\prodcomn\java\oracle\apps\az\jar\azwizard.jar
e:\oracle\prodcomn\java\oracle\apps\jtf\jar\jtfgrid.jar
e:\oracle\prodcomn\java\oracle\apps\jtf\jar\jtfscgnt.jar
e:\oracle\prodcomn\java\oracle\apps\ies\jar\iesclien.jar
e:\oracle\prodcomn\java\oracle\apps\ies\jar\iesauthr.jar
e:\oracle\prodcomn\java\oracle\apps\wps\jar\wpsgantt.jar
e:\oracle\prodcomn\java\oracle\apps\pon\jar\ponam.jar
e:\oracle\prodcomn\java\oracle\apps\fnd\jar\fndlist.jar
Done Analyzing/Generating jar files : س ينا 29 2011 14:01:56
AD Run Java Command is complete.
Failed to generate product JAR files in JAVA_TOP -
e:\oracle\prodcomn\java.
adogjf() Unable to generate jar files under JAVA_TOP
Time is: Sat Jan 29 2011 14:01:56
Backing up restart files, if any......Done.
You should check the file
e:\oracle\prodappl\admin\PROD\log\adadminjargen4.log
for errors.
Thanks
With Regards
A-Z
Edited by: user12154865 on Jan 29, 2011 3:30 AM -
Guys, I've googled the crap out of this one. I need some help signing a jar file.
Here is what I'm doing:
1. Generating a key:
keytool -genkey -keystore myKeyStore -alias myName2. Trying to sign the jar file:
jarsigner -keystore myKeyStore -storepass myPassword -keypass myNamePassword myJar.jar myNameHere is the error I'm getting:
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore formatI'm using Ubuntu Linux.
I wrote and built my project with Netbeans.
Any ideas?Here is what the latest process looks like. What am I doing wrong?
thomasaaron@ubuntu:~/Desktop$ keytool -genkey -alias thomasaaron -keystore myKeyStore
Enter key store password: password1
Enter key password for <thomasaaron>: password2
You are about to enter information that will be incorporated into
your certificate request. This information is what is called a
Distinguished Name or DN. There are quite a few fields but you
can use supplied default values, displayed between brackets, by just
hitting <Enter>, or blank the field by entering the <.> character
before hitting <Enter>.
Common Name (hostname, IP, or your name): Thomas Aaron
Organization Name (company) [The Sample Company]: Tom's Company
Organizational Unit Name (department, division): Tom's Department
Locality Name (city, district) [Sydney]: TommyLand
State or Province Name (full name) [NSW]: Colorado
Country Name (2 letter code) [AU]: US
thomasaaron@ubuntu:~/Desktop$
thomasaaron@ubuntu:~/Desktop$
thomasaaron@ubuntu:~/Desktop$ jarsigner -storepass password1 -keystore myKeyStore SupportManager.jar thomasaaron
jarsigner error: java.lang.RuntimeException: keystore load: Invalid keystore format -
Hi all,
with reference to the thread [http://forums.sun.com/thread.jspa?threadID=724575|http://forums.sun.com/thread.jspa?threadID=724575]
Which driver do you have to specify? I mean, the smarcard-reader driver or the smartcard itself one?
If the second, does it come along with the card? because as far as I know I just got the smart card but no software at all (apart the smartcard reader driver).
Thanks in advance!
MarcoOk, my smart card is a Siemens one I got the driver along with the installation package (SI_PKCS11.dll)
I believe my problem is not related to a lack of driver, but instead to some config or parameter error. here is the command I issue:
jarsigner.exe -keystore NONE -storetype PKCS11 -providerclass sun.security.pkcs11.SunPKCS11 -providerArg C:\SiemensCard.config -storepass 12345678 -verbose C:\newapplet.jar "Signign Alias"the SiemensCard.config file is:
name = Siemens
library = c:\windows\system32\SI_PKCS11.dllThe error I get is:
jarsigner error: java.lang.RuntimeException: unable to instantiate keystore class: PKCS11 not foundI thought that the error meant that the pkcs11 token (certificate or the whole smartcard) was missing, but now I suspect it might be related to some error in the pkcs11 configuration as I specify -storetype PKCS11
What do I am missing/getting wrong ?
Maybe you are looking for
-
The URL is not valid and cannot be loaded keeps coming up whenever making a new tab. can not seem to fix have firefox 3.6.13
-
Cause of "Program was terminated by signal 10"
Hi All, This is Amit from AR dev Can any one please tell me what is/are the reason/s of "Program was terminated by signal 10" error in a C program? In my case, Program was terminated by signal 10. (In the file arccmm.lpc version 120.1.12010000.6 You
-
Display Ordimage in Forms6 !
Could It display ordImage type in oracle Forms6 , Server Oracle 8.1.5 on Solaris ? And if not ,what version it could be run ?
-
Help my IPOD won't start PLEASE HELP
It gives me the apple screen and then switches into the foloer with an exclamation point and i don't know how to get it out. I have tried restarting, and plugging it into the computer doesn't do anything. It is charged, please help.
-
Strangeness when ITunes closes
Whenever I close ITunes prior to shutting down my computer, the following always happens: 1) ITunes shuts down. Bye-bye, Itunes. 2) When Windows starts shutting down, I get dialog box with a countdown bar, saying "Windows is shutting down this progra