Jarsigner: Choose key from Token

Hi,
so far it wasn't a big deal to get my token connected to the Java environment via Cryptoki. But now I am facing a problem which is really weired for me:
How can I choose the correct key from my crypto token? I can list the keys with keytool but the list doesn't really help:
f78fb2e7-45d7-4f12-822c-c7217b26b11f, PrivateKeyEntry,
Certificate fingerprint (MD5): 4F:44:C4:1A:6E:00:D0:90:DE:92:A6:B7:D2:B0:31:64
623d4c82-fccd-485f-8457-b64a4f8b81e5, PrivateKeyEntry,
Certificate fingerprint (MD5): C7:B4:23:C7:59:53:49:03:7D:72:F1:12:50:D5:6E:67
What else can I do to identify the correct key or how can I specify it?
Your help is appreciate.
Thanks!

Hi,
now I am pretty sure that the error message I get is just not very precise/correct:
When I enter the following:
jarsigner -keystore NONE -storetype pkcs11 -signedjar applet.jar signedApplet.jar -alias ec65eff2-5ebc-4e22-8560-0bf16bc552c2
I get the following error message:
jarsigner: Certificate chain not found for: -alias.  -alias must reference a valid KeyStore key entry containing a private key and corresponding public key certificate chain.
But I can export the certificate so that it seems to exist. Therefore I came to the conclusion, that jarsigner is probably missing the root-certificates - whysoever. So I tried to install a keypair on the token instead of saving it to a keystore. As well I tried to export a keystore to the token. But both didn't work out, as I received the following error message:
sun.security.pkcs11.wrapper.PKCS11Exception: CKR_TEMPLATE_INCOMPLETE*
I have no clue how to solve this problem. So any type of support is appreciated.
Thanks!

Similar Messages

  • Choose the key from the allowed namespace

    Hi All,
    I am using SAP HR practice system and I am getting this error "Choose the key from the allowed namespace" while trying to Define Generation rules for Quota type selection in Time Management.
    Error message as below; Can some one please guide me how to resolve this.
    I also tried saving without clicking on save or green button but by pressing enter nothing worked.
    Choose the key from the allowed namespace
    Message no. SV019
    Diagnosis
    You have attempted to create an entry and have used a key which is not in your namespace.
    This can cause problems in later upgrades because the entry could be overwritten by an import, or overwrite an existing entry.
    Procedure
    Check your entry and try to enter a key value from your namespace.
    You can display the namespace definition with RDDKOR54.
    If you must use the key entered, document your change so that it can be repeated after an upgrade or release change if necessary. If you put the data in a change request, you can export it before an upgrade or release change, and import it again afterwards.
    Best Regards
    Raskii

    Raskii,
    When you are trying to clear a warning message in SAP, press enter. That's not intuitive. The natural tendency is to continue to press save.
    So the sequence of events is:
    - change the data
    - press the save button
    - receive a warning error message
    - press enter, and continue to press enter until you are notified that the change has been saved
    This will work if it's truly a warning message.
    Regards,
    Howard

  • DST - Choose the key from the allowed namespace

    Hi everyone. I am trying to add the new Timezone setting as per note 919538.
    When I do, I get a message "Choose the key from the allowed namespace". Another search in OSS said that this can only be correct with a support pack.
    Does anyone else have experience with this or seen this error?
    Thanks!

    Re: DST - Choose the key from the allowed namespace  
    Posted: Mar 6, 2007 6:36 PM   in response to: Galina Savikovsky           
           Click to reply to this thread      Reply
    Hi friends,
    The problem is , may be you are all trying to click " SAVE" after doing all the entries.
    1. Do all the entries
    2 Click Enter ( or) that green tick mark on the top left corner next to the place where we put the TCODE.
    You will get the transport request for the change you have made
    Hope this helps, points are appreciated
    Uday

  • Add Option of choosing values from list in "Person Responsible" field of Cost Center Master

    Dear All,
    Could anyone advise me how can I add the option to Choose Values from list to field "Person Responsible",
    in Cost Center Master Data ?
    The Technical Name of this field is VERAK, and currently it is an open field.
    I would like to allow the user to choose values from existing list.
    Thank you!
    Orly

    Hi Orly,
    You have take it to your ABAPer, who will have to modify the attributes of CSKSZ-VERAK field in CSKSZ structure. ABAPer will have to define it with foreign key and introduce the name of the table, which will be used for deriving the available values. No standard table exists for it, but you can either create your own Z-table or take it from users table (USR02) if you have the necessary information there. Of course, this action would account for modification of standard SAP structure.
    Regards,
    Eli

  • Get all keys from Cache

    Hi,
    I have a scenario where I have a backing store attached to the cache and running the server in a fault tolerant mode. Because of fault tolerance when a new node joins the cluster it is required to recover the data from the cache. When using NamedCache.keySet() I get only the keys which are in the cache and not the ones persisted in the Backing store.
    How do I go about getting the whole set of keys from the cache and backing store using the Tangosol API ?

    Here is my cache-config file. The CacheStore implementation is quite big and I need to check with my manager to share it on the forum. Maybe this will continue through the regular support channel.
    Message was edited by: pkdhar<br><br> <b> Attachment: </b><br>coherence-cache-config.xml <br> (*To use this attachment you will need to rename 465.bin to coherence-cache-config.xml after the download is complete.)

  • I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click. How do I get version 4 to do this? Thanks.

    I have version 3.6.16 and when I login to my hotmail account, and type the first letter of the email address, a drop down box appears with my hotmail address and I can choose it from that box with a click.
    How do I get version 4 to do this?
    Thanks.

    The new but not-ready-for-prime-time autocomplete method searches for matches that contain the entered text, not just ones that begin with the string. Your options are:
    1) type in longer strings that narrow the search
    2) use an add-on to search just the beginnings:
    https://support.mozilla.org/en-US/questions/1037469
    3) install an older version of TB:
    http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/

  • Private key from a file

    dear all
    I want to create rsa private key from .key file. I searched a lot but could not find a way to do so. how can i do that ???

    'pem' stands for Privacy Enhanced Mail and defines an encoding to ASCII of binary data and not the format of the content of the file. Having said that, it looks to me that your file is a PEM encoded SSLeay format RSA key generated using OpenSSL and encrypted using the '-des3' option. Before loading into Java I normally convert, using OpenSSL, SSLeay files to a PKCS8 format private key and an X509 format public key certificate file. These are then easily loaded into Java.
    The OpenSSL documentation will tell you how to generate the PKCS8 and X509 files but there are numerous sites that will hand-hold you through the commands. Google is your friend. Once you have generated these files then Google will also provide source code for loading them into Java.

  • Private key from RSAKeyValue

    How to generate private key from <RSAKeyValue> generated by .net. in java? I got public/private key in following format.
    <RSAKeyValue>
    <Modulus>abcdyDdNySesa8sWsd8XRG9rFf1av
    hch9BSG+sgCSYumLm5gzeTxrrpSqUf2VYfLp8USqK4uFBX312368wOEfK+C/viScPZn/hKcq
    vFpd/gKyXJ0M6Oxybn7qJNjVjGtemQDJJdvUPNyV1bcTq0Ugw9lM2cDBVzqHjxxzzACJnab=
    </Modulus>
    <Exponent>AQAB</Exponent>
    <P>/UTBBgeTREzfbV9ev1tKwGtFovxi9BiK5
    crZ3Qns3rt+lrd6Xas6tJhAvedGakGP7eeaLHdXZjeXGnqvKzRHw==</P>
    <Q>8FBLHPccdNh//dRF7Uf6weB829bz+G+NvVrKJMcOzUr9QuKcyRqfZTslKiC/aG9p1PoFxWpeyoPFwDrqFzTYhw==</Q>
    <DP>MTvTPU3fnscdFbb3MaG4gzuArbgQNFc722pkgoakfOS9RQgf/VjKXoFllz7
    05d+z6SHvSGemnEcYtNcbscPt4Q==</DP>
    <DQ>0NOVUihSbB8uqe8sVZ11BEEFfyw9eafGrc
    NVYbww2qjNh+/QetlNpfRNiVxHuIMInnBdz31tveHgV/laLqyDxQ==</DQ>
    <InverseQ>X0KxLXzW2glIhkk5lP0OnQVWfTutwo9Qg4DSk/5MtbQMMek8SHju7X9Ae2iL4DDRbWG/5mbrPdQ1yQg+GXCWbw==</InverseQ>
    <D>NCBukE3dm5+xRXEY4qWk3Xe8XFvIHT5vENOzTZE4jz0aBPxzTYLIgbkZP+lXgllc4mricqYSsD3K8vCBMQXEhqHkc6pSiYfesZG3wlujJGRyVoT1pVk5M460RwJfwPsO0TxfYCYU80CIfZNzFIEpGEp6pAUF1TQbnTre11aFjU=</D>
    </RSAKeyValue>
    I was able to generate public key as below.
    BigInteger publicExponent = new BigInteger(new sun.misc.BASE64Decoder().decodeBuffer("AQAB"));
    RSAPublicKeySpec rsaPublicKeySpec = new RSAPublicKeySpec(modulus,publicExponent);
    But privateKey need privateExponent
    RSAPrivateKeySpec rsaPrivateKeySpec = new RSAPrivateKeySpec(modulus,privateExponent);
    How to get privateExponent from <RSAKeyValue> ?
    RSAPrivateCrtKeySpec need following parameters. Can not find where it map in <RSAKeyValue>
    RSAPrivateCrtKeySpec(BigInteger modulus,
    BigInteger publicExponent,
    BigInteger privateExponent,
    BigInteger primeP,
    BigInteger primeQ,
    BigInteger primeExponentP,
    BigInteger primeExponentQ,
    BigInteger crtCoefficient)
    Thanks,
    DP

    PKCS#1 1.5 definition:
       RSAPrivateKey ::= SEQUENCE {
         version Version,
         modulus INTEGER, -- n
         publicExponent INTEGER, -- e
         privateExponent INTEGER, -- d
         prime1 INTEGER, -- p
         prime2 INTEGER, -- q
         exponent1 INTEGER, -- d mod (p-1)
         exponent2 INTEGER, -- d mod (q-1)
         coefficient INTEGER -- (inverse of q) mod p }RSAParameters as documented in .NET Framework Class Library:
    D Represents the D parameter for the RSA algorithm.
    DP Represents the DP parameter for the RSA algorithm.
    DQ Represents the DQ parameter for the RSA algorithm.
    Exponent Represents the Exponent parameter for the RSA algorithm.
    InverseQ Represents the InverseQ parameter for the RSA algorithm.
    Modulus Represents the Modulus parameter for the RSA algorithm.
    P Represents the P parameter for the RSA algorithm.
    Q Represents the Q parameter for the RSA algorithm. The KeySpec (CRT = Chinese Remainder Theorem)
    RSAPrivateCrtKeySpec(BigInteger modulus, 
    BigInteger publicExponent,
    BigInteger privateExponent,
    BigInteger primeP,
    BigInteger primeQ,
    BigInteger primeExponentP,
    BigInteger primeExponentQ,
    BigInteger crtCoefficient)So we could try some guessing:
    modulus <- Modulus
    publicExponent <- Exponent
    privateExponent <- D
    primeP <- P
    primeQ <- Q
    primeExponentP <- DP
    primeExponentQ <- DQ
    crtCoefficient <- InverseQTry it and tell me if it worked. Good luck.

  • Can I use product key from Windows 7 32bit to 64bit?

    Hi, i have a Toshiba L505-10V and the original cds(2) with Windows 7 prenium 32-bit.
    I have downloaded windows 7 prenium 64bit from here http://www.techverse.net/download-windows-7-iso-x86-x64-microsofts-official-servers/
    I use the key from 32 bit but it says its not valid. Is it possible to work with the same key?
    Also i download belarc to recoginise my 32bit windows key and it shows me different key from that is on the base of my pc.

    Hi
    According notebook specification your notebook was delivered with preinstalled Win7 64bit Home Premium and you got 32bit version on recovery DVD.
    Both recovery versions are designed for your notebook model and both versions contain activation code so that both versions must not be activated.
    I presume you didnt create recovery disc for preinstalled Win 7 64bit version.
    You cannot use product key listed in 32bit version. If you use own Windows version you must enter valid product key that you must buy from Microsoft.

  • HT3406 If I choose "restore from iTunes backup" to move everything from old phone.  Will I still be able to use the old phone for music and apps?  Can the old phone be docked up to the computer?  Or will the new and old phone overwrite each other in some

    If I choose "restore from iTunes backup" to move everything from old iphone to a new one, will I still be able to use the old phone for music and apps?  Can the old phone be docked up to that same computer every now and then?  Or will the new and old phone overwrite each other in some way?  In other words, are the two phones treated as different devices when the "restore" option is used to set up the new phone?   Thanks in advance.

    Yes, you can use the old iPhone as an iPod touch.
    Read this:
    http://support.apple.com/kb/HT3406

  • Recovery key from MBAM for non TPM machines

    Hi,
    Since long time am trying to find answer about below query but unlucky , can some one guide me if this is feasiable or not?
    1. I have non TPM Machines and want to use Bitlocker with MBAM.
    2. if I will use the USB flash driver as start-up key during machine start-up than can we get the recovery key from MBAM (self service or helpdesk portal) if I lost the USB flash drive ?
    Shailendra Dev

    Hi,
    For Windows 7 computers TPM is a requirement for Windows 8 / 8.1 it is not, so it depends in what client OS you want to manage.
    See the documentation:
    http://technet.microsoft.com/en-us/library/dn145046.aspx
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Ned to back up files.  Trying to reformat a WD 1TB external hard drive but my utilities keeps saying "choose scheme from volume pop up menu.." also says cannot be modified.  What can I do?!

    Help would be appreciated! Before I upgrade my 10.6.8 OS X I need to back up files.  Trying to reformat a WD 1TB external hard drive but my utilities keeps saying "choose scheme from volume pop up menu.." also says "this partition cannot be modified."  What can I do?! Take it back to Currys!  Many thanks

    Select the Top Most Entry for that drive, it will be the drive model # and have the size listed, then go to the Partition tab and select One Partition from the Partition Layout area drop down. Then select Mac OS Extended (Journaled) as the format, if that is the format you want to format it AS. Then click the Options button near the bottom of that windows and select GUID as the Partition Table. Close the options screen and clcik the Apply button.

  • Getting KEYS from a database!

    Hi Everybody,
    I have a serious problem! I have to get the Keys(Column Names) from a Database (MS-ACCESS) Table.
    JDBC2.0 contains a class called DatabaseMetaData. It has functions like getPrimaryKeys(), getImportedKeys() and getExportedKeys(), all of which I have to use. But I'm unable to access these functions because the "Driver does not support these functions". I tried using the JDBC-ODBC driver, IDS Server Driver and the JDataConnect drivers. All of them gives the same error message.
    Is there any way to get the Keys from the table?
    I found a way to get the Primary Keys - I'm getting it from the Indexes - getIndexInfo() function.
    But I haven't found a way to get the Foreign keys and other keys in the tables.
    Does anybody know how to get the keys from an MS-ACCESS database?
    Thanks,
    TechnoSam.

    The JDBC API is mainly a set of interfaces required to be implemented by the JDBC Driver vendor. Because these are interfaces, the vendor is free to actually implement whatever logic they see fit, but of course they will implement what is required.
    I would suspect if you are getting a 'Not supported by Driver' type error, it is because the vendor had to implement that method, but did not implement it with code that does the desired logic.
    Most likely, this was either very, very hard to do or just could not be done give that the driver was written for a particular database.
    If this is something you need, I can only suggest trying to write a procedure (can you do that in MSAccess?) which does the logic you need (in Access) and returns the info you want. You can then access it via a CallableStatement.
    Hope this helps.

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • How to stop the option key from changing tools when trying to subtract from a selection?

    How to stop the option key from changing my tools when I am trying to subtract from a selection?
    I'm running CS3 on Mac OS Leopard, and the automatic tool switching slows me down, but even preferences doesn't show a way to turn this off.
    Thanks for your help.

    With any marquee tool, JUST holding down the option key should not switch tools. You need to explain the problem much more carefully, It's completely impossible to tell from your description whats going wrong.
    automatic tool switching
    The only preference related to this, is to do with the SHIFT KEY - "use Shift key for tool switch".

Maybe you are looking for

  • Not able to maintain a component description in product category in CRM SER

    Hi I am Vijay Working on best practices and got some problem in maintaining  a component description in services specilization . The t code is IB52 where i have to maintain the field description for products with Field Name and Field Value but these

  • Ipod shuffle connected to a PC with a rootkit / malware

    OK, so I tried to search this and only found some "old" posts....... Sorry If this is already covered - Please provide a link, if it is - thxs. So my ipod was connected to a windows PC, I got an "unable to disconnect, in use by another program" error

  • Business Transaction Events (BTE) for Post Incoming Payments F-28

    Hi Experts, I have a request from a user to add a ship-to-party column inside the Post Incoming Pamyent F-28 for all the 4 tabs (standard, partial payment, res.items, withholding tax). Anyone did this by using BTE? What should be the event name to ad

  • Need to uncheck the box labeled Preserve RGB Numbers in Color Management

    I am trying to set up my color settings for dye sub and the guide I was given for my printer settings shows that in Color Management, the box next to Preserve RGB Numbers should be unchecked. However, in my settings, this is grayed out with the box c

  • CA-116 and 7020

    I have the old CK-7W kit without the charging lead. I see the CA-116 is available, but would it charge my 7020 handset? Alternatively, is there another lead which would fit both the 7020 & CK-7W? Solved! Go to Solution.