Invalid Key codes

I have "repeated step 2" so many time I can't count. My key codes will not validate my quicktime pro. Also, I have email apple support at least 6 times with no response.
Can anybody help?

It is usually best to "Copy/paste" both the name entry (including salutation) and the number from the e-mail to the application. Also make sure you didn't accidentally purchase an authorization for the wrong platform. They are not interchangeable.

Similar Messages

  • Invalid Key code Error while installing crystal report server 11

    While installing crystal report server 11,i am facing an erro which says Invalid Key code Error.I had raised this issue to SAP customer support and attaching the conversation that we had.PLEASE HELP me to resolve the issue.
    MAILS--Dear Mohit,
    Thanks for the patience.
    We have received the below update from the Licensing Team.
    You received your permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    You did not purchase these licenses for Crystal Reports Server, but purchased it for Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but you elected to use version XI instead and received key .
    You would need to enroll the licenses in maintenance if you want to upgrade them.
    In case of any queries please create a ticket via the Service Market Place.
    Regards,
    Jessy
    Customer Interaction Center
    SAP Active Global Support
    Hello Jessy,
    The customer received their permanent key in respect of these licenses - the key is  for Crystal Reports Server XI.
    They did not purchase these licenses for Crystal Reports Server, they purchased Crystal Reports and a 5-named user license for Crystal Reports was included as a special offer.  The software included was version XIR2, but they elected to use version XI instead and they received key .
    They cannot decide to upgrade now - they must enrol these licenses in maintenance if they want to upgrade them.
    Kind regards,
    Rosemary
    From: BOSAPASIA
    Sent: 29 September 2009 05:49
    To: Savage, Rosemary
    Subject: FW: Crystal Reports Server Installation Issue
    Importance: High
    HI Rose ,
    Need your assistance on the below issue.
    Customer purchased Crystal Report Server XI R2 in 2005. When he is trying to install it now, he is getting an Invalid Key code Error.
    He has provided us the Scanned copies of the Key code and the registration number.Can you please help and check if he can be provided with a Keycode.
    Regards,
    Jessy
    CIC Team Lead
    Customer Interaction Center
    Global Support Centre India
    SAP Labs India Pvt Ltd
    Hi,
    Providing you with the required details to proceed further
    Registration Number-
    Registration Email Address-taxmantra.support
    And also please find attached the scanned copy of the Registration key we got for the Crystal report server.
    Dear Mohitk,
    Thank you for your information.
    I checked with the concerned colleague and received the below update:
    Please check from where you got this key code. If from a paper, please scan it to us. Please let them track to the original paper or email.
    If you have registered the key code, please provide us the registration number or registration email address so that we will try to check for you.
    If you did not register before, as the promotion is over so the key code could not be replaced.
    I request you to kindly check the same at your end and revert with the details.
    Moreover, there are two ways for Crystal Report customer to get support.
    One is customer with bundled product such like BOE and under maintenance. These customers will have an S-user ID and password to log a case in service market place via http://service.sap.com/message
    A learning map was provided, listed on left column.
    The other is customer with only Crystal report product, the support is via SDN.
    http://service.sap.com =>Crystal Reports and Xcelsius Support=>Crystal Reports and Xcelsius Forums
    Customers can first check whether other customer has got the same issue and find the reply from our engineers.
    You may also post your own thread for support.
    Anything else I could help, please do not hesitate to contact again.
    Hi,
    I am providing you with the details required to resolve the issue related to Crystal report installation,for reference of the issue please refer the mail below.
    Please find attached the Scanned Document  containing the details as per the details required by you.
    Hope to see a quick resolution for the issue.
    Dear Mohit,
    Thank you for your e-mail.
    As discussed, I understand that youu2019ve procured Crystal Reports Server 11 in 2006. However youu2019re facing issues with key codes while reinstalling the same. We request you to kindly provide us with below details for further assistance.
    Your customer number:
    Your customer name and address:
    Purchase order number:
    Any other products purchased along with Crystal Reports Server 11
    Any S-User Id:
    Any old case ID:
    Please feel free to contact us if any further queries.
    Hi,
    I am raising this concern on behalf on Taxmantra project (Tata Consultancy Services noida).
    We have bought licensed Crystal Reports Server 11 near by 2006.We are trying to install the crystal server but while installing ,we have encountered with an error message that:-
    "The product key code you have entered is incorrect"
    We are facing the same issue in 2006,I am attaching with this email the conversations that was held in 2006 to get the correct key code.
    Please help us to resolve the issue as early as possible.
    My contact number:
    If you need any further information do let me know

    Ajit,
      By design, the product is not able to be installed under the superuser account.
    1.  Create a new user and specify a home directory for the user without a quota set.
    2.  Copy or move the installation files to a directory that the new user can read.  I suggest you move the installation files directly into the new user's home directory.
    3.  Logon as the new user (or su - newuser)
    4.  run the installation shell script using that new user's account.
    NOTE:  Ensure the system meets the requirements from the supported platforms documents.
    .Tony

  • Invalid key code and multiple installs

    OK, so I got a new iMac and tried to install vista on it like I had on my old iMac (2006 Model). However, when I finished the installation it started a new installation and it ended up installing vista twice. It would have done and third install, but I held down the option key during install and manually selected the windows partition instead of the Windows install CD. However, not all of the Windows features were installed like Aero so I deleted the windows partition. My iChat buddies list got deleted so I had to delete my iChat preferences (don't know if this will help).
    Anyway I tried to re-install Vista this morning and it said my key code was invalid, although it worked yesterday. What is the problem? This is the second invalid key code problem I've had on this Mac (the first was with Logic).
    Oh also, there seems to be some remnants of Vista on the computer even after I deleted the partition because unless I held down option/alt during boot up it would try to run windows and would say no boot disc.
    Thanks in advance for any help!

    Can anybody help with this?
    I tried reinstalling it and it slowed down my boot up speed because it didn't install right and I had to delete the partition once again.
    The keycode issue has been resolved though for some reason...

  • Invalid Key Code when trying to install Crystal Reports XI

    Hi, I was referred to your web site by SAP phone support.
    I am trying to install Crystal Reports Developer XI on a Windows Server 2003 machine, and the key code I retrieved from the service.sap.com site is not being accepted by the installation program. It gives me an error message saying that the key code is invalid or expired.
    What can I do? I tried posting a message to XX-SER-LIKEY-BOF as instructed on service.sap.com but they only answered by giving me the same non-working key code again.
    I tried calling the phone support site, and they instructed me to go to sdn.sap.com. I guess this forum is what they meant.

    I would suggest calling the Customer Service department; you can get the info from the following link:
    http://www.businessobjects.com/company/contact_us/
    Call either the Canadian or USA number. If they can't help you directly, they should be able to tell you who you need to contact to resolve your issue.
    Hope this helps!!
    Regards,
    Shweta

  • WEP Invalid Key Code

    I have the HP Officejet 4500 Wireless and keep getting the invalid WEP key code while trying to set up the wireless printing.  I have 4 key codes for my router and have tried them all with the same result.   There is a link to a document posted by someone else regarding this subject but the link is no longer valid so I'm looking for the solution.

    Do not use WEP, it is not secure and can be troublesome to set up devices like printers.
    Change you router to use WPA or WPA2 with a password you create.  Make it a long one (13+ characters).
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • Can't install Logic, invalid key code that I know works

    I bought Logic Express last year and I tried to install it today on my new refurbished iMac. I lost the instruction manual with the code on it so I looked up the license information on my old mac and wrote down the code, but when I tried to use that code it said it was invalid. Then I tried copying the program onto my external hard drive and then copying it again onto my hard drive on the mac, but it needed the code again and then said it was invalid.
    Is this because I still have it installed on my old Mac? I tried to use migration assistant because I assume it was made for this type of thing, but it doesn't work either. I can't get a connection between the computers.

    It's unlikely that having LE still installed on your old computer prevents you from using the code for installing it on the new one. Check if you copied the licence key right and its format first. Also, if you had your LE registered with Apple, you can get in touch with them via Support and retrieve your licence key, I guess.

  • Invalid key code

    Hi guys
    I brought my copy via a phone hook up with Microsoft in late Dec 2013 it has work fine until I had a problem with my computer and had to do a reset now I can not find the key as it was put in by the installer who came on line in the computer the only one
    I found comes up invalid, also the  whole office program is in a different folder and will not work at all after the reset.
    I hope you can help me as I am only on a pension and could no way afford any cost
    Thank you
    Bob Williams

    How do you “reset’ your computer? If the computer is broken and you’ve changed the hard drive, such as hard disk, motherboard, etc.. that would bring the license problem.  Please do a phone activation in Office. The phone activation process will provide
    you with the appropriate phone number to call. Explain to the service (Human being) that your computer died and has been retired, you would transfer the license to the new machine.
    If the product key can be found and use Office 2013 Home version. Check this:
    http://office.microsoft.com/en-in/support/find-your-product-key-for-office-2013-and-office-365-home-premium-HA102830243.aspx#top
    If there is any quesion or concerns, feel free to post back with the detail Office version. Thanks.
    More information:
    The tool in http://support.microsoft.com/kb/836178 walks you through a trouble-shooting procedure for Office Product Keys.
    Tony Chen
    TechNet Community Support

  • Product key code is invalid

    I try to install Crystal reports XI release 2 fron DVD and received Key code expired or invalid. What caused this? I know key code is valid. Is product keycode associated with CD? Thanks
    jann Lin

    Hi Jann Lin,
    Typically when this happens its becaue the first thing CR install does is try to write the kecode dll to hard driver and register it. If that fails then you can get that message.
    You must be a local PC administrator and logged in with that account.
    Try copying the DVD contents to your local hard driver first and run the installer. If that fails then copy the keycode.dll to c:\ and use regsvr32.exe to register the dll. Command line would look like this:
    regsvr32.exe "c:\keycode.dll"
    You'll get a message indicating it's been registered. Now re-install.
    If that doesn't work then you'll have to call Customer Services who can verify the keycode and get you a new one if required.
    Thank you
    Don

  • Invalid Activation Key Code for Windows 7

    Re: CSOxxxxxxxxxx (IBM)
         : Lenovo pt/#-57Y2911
    I purchased a T500 with VISTA and upgraded to Windows 7 (pt/#-572911), purchased from Lenovo. Installed it as directed and now Microsoft has monitored the software as it is on my computer and they are saying it is not a valid Key Code. One Key Code came with the new disc that was mailed to me and it was not working as I placed it in the BOX. So Lenovo e-mailed me another Key Code and I have been operating Windows 7 for about a Month and now I'm being told once again that the Key Code is in error.
    I spoke with IBM by phone on Friday (12-12-09) and was told by a fellow named P that I was being asked for the Key Code to Microsoft Office 2007 and tonight (12-13-09), Saturday, I'm finding out that the Key Code wanted is for Windows 7 and not Microsoft Office!
    I hope there is someone credible with Lenovo that will follow up on this matter...the phone number given me by e-mail is (866-968-4465). The person (P) there was of no help! I still have a copy of the e-mail, to prove my case.
    Please help!
    I do not like this kind of situation! And I hope not to have to give Lenovo a bad name; I spent a lot of money!
    Note from Moderator:  Employee identification removed as per the forum rules.

    LAY wrote:I hope there is someone credible with Lenovo that will follow up on this matter
    Welcome to the forum!
    While there are a few Lenovo employees roaming around in here helping out on a volunteer basis, this is not an official support channel with dedicated Lenovo support personnel assigned to it. Instead, this is designed to be a user-to-user support and discussion forum. You may or may not get an answer directly from one of the Lenovo employees as there are way more of us than them and all of them, even Mark, have full-time jobs doing other things.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Key Code for Office 2010 Pro

    I purchased the product from my company. My laptop has crashed and I have a new one now.  I do have the correct Key Code (saved it in my emails), but it is still stating the it is invalid. How can I reload this application on my Laptop (Same situation
    with the Office 2013 version as well).  I understand that is it to be used for one person only (which it is).... but how can I get this activated??
    Thank you,
    Mimi in Texas

    Hi,
    You need to migrate the product key to the new laptop, since we don't have the access to product key migration process, you need to contact your local customer service to do this:
    http://support2.microsoft.com/gp/customer-service-phone-numbers/en-us
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Set JArray values with invalid key value: "LastUpdatedTime" on new alert rule creation

    Hey all!
    I'm trying to create a new alert rule using version 0.9.11 of the Monitoring Library and am getting this error on alertsClient.rules.CreateOrUpdate:
    "Set JArray values with invalid key value: "LastUpdatedTime". Array position index expected."
    That's interesting because LastUpdatedTime is a DateTime object, and whether I set it or I don't, if I set a breakpoint, it does set itself correctly, but the API appears to be expecting a JSON hash?
    I've tested alertsClient and I'm able to get existing alerts (also metrics with metrics client), so I don't believe it's an access issue.
    Any ideas?
    The full code I'm using for the test (borrowed virtually verbatim from the Cloud Cover video
    here): 
    Rule newRule = new Rule
        Name = "CPU Over 90%",
        Id = Guid.NewGuid().ToString(),
        Description = "CPU Has been over 90% for 5 minutes",
        IsEnabled = true,
        LastUpdatedTime = DateTime.Now,
        Condition = new ThresholdRuleCondition
            Operator = Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.ConditionOperator.GreaterThan,
            Threshold = 90,
            WindowSize = TimeSpan.FromMinutes(5),
            DataSource = new RuleMetricDataSource
                MetricName = "Percentage CPU",
                ResourceId = "",
                MetricNamespace = ResourceIdBuilder.BuildCloudServiceResourceId(<cloudservicename>, <deploymentname>)
    RuleAction action = new RuleEmailAction
        SendToServiceOwners = true,
    newRule.Actions.Add(action);
    OperationResponse alertResponse = alertsClient.Rules.CreateOrUpdate(new
    RuleCreateOrUpdateParameters { Rule = newRule });
    Console.WriteLine("Create alert rule response: " + alertResponse.StatusCode);

    Hi Greg,
    Thanks for your post!
    Error "JArray" has been fixed in the latest nugget package.
    Refer to:
    http://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Monitoring/
    Hope this helps!
    Regards,
    Sadiqh

  • Exception while calling ADS Inappropriate WSIL Invalid Response Code: (401)

    Hi Experts,
    Our ADS configuration was done on XCE a long time back and even reader credentials were installed and everything is working fine.
    Couple of days back, we enabled SSL configuration on the system. Even got the certificates signed by CA and HTTPS is also working without any problems.
    Then, problems are happening when we configured WebService SSL connection for ADS following the steps from
    http://help.sap.com/saphelp_nwce72/helpdata/en/90/71d273fa724cc9bb644ab00405e6f8/content.htm and also the SAP How to guide from: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d02262d8-7814-2c10-5c97-d855d38e9923?quicklink=index&overridelayout=true.
    Among other steps, I have created a View in Key Storage called "ADSCerts" and created an entry "ADSUser" as per the document, generated CSR request, imported CSR response and also the CA's root certificate.
    I exported the ADSUser-cert certificate from here and imported into Identity Management for the User ADSUser under its Certificates tab.
    Also updated SecureConfigPort_Document (in Destination Template Management under SOA Administration) security settings to X.509 Client Certificate and in Details, I have chosen the View ADSCerts and entry ADSUser.
    Even after all the steps as per the document and the help.sap.com link provided above, when I try to test this through a test URL
    (https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp) that our developers have given me for this, I get a (401)
    Unauthorized error:
    500 Internal Server Error is returned for HTTP request
    [https://host:https-port/webdynpro/resources/company.com/test~wd/TestAdobeApp]
    com.sap.tc.adobe.pdfobject.base.core.PDFObjectRuntimeException:
    Exception while calling ADS; Inappropriate WSIL; configure the
    destination path
    correctly./ncom.sap.esi.esp.service.server.query.discovery.ExtendedServiceException:
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unauthorized. The requested
    URL was:"Connect to https://host:https-port/inspection.wsil/"
    I have checked the security log file and it shows:
    LOGIN.FAILED
    User: N/A
    IP Address: 192.165.90.102
    Authentication Stack: sap.com/tcesiesp~wsil*inspection.wsil
    Also, ran Security Troubleshooting Wizard from NWA and reproduced the problem while collecting these traces. There were some entries like:
    Login failed!
    [EXCEPTION]
    java.security.PrivilegedActionException:
    com.sap.engine.services.security.exceptions.BaseLoginException: Cannot
    authenticate the user.
    Caused by: com.sap.security.core.server.jaas.DetailedLoginException:
    Received no SAP Authentication Assertion Ticket.
    Received no SAPLogonTicket. Authentication stack:
    [sap.com/tcesiesp~wsil*inspection.wsil].
    Any idea how I can solve this? Anybody got this error?
    Thanks,
    Shitij

    Opened an OSS message with SAP and they told me that the certificates being generated from NWA are in a different format from what is accepted in user store.
    So, generated new certificates from OS level using sapgenpse and now it worked.

  • Invalid Key Exception: Unsupported key type: Sun RSA public key, 1024 bits

    I am trying to retrieve certificates from Microsoft Keystore and extract its keys using SunMSCAPI in jdk 1.6. It gives me an invalid key exception, when I am trying to wrap the Symmetric key (which was previously used to perform AES encryption on data), using RSA algorithm.
    Code snippet:
               // RSA 1024 bits Asymmetric encryption of Symmetric AES key             
                // List the certificates from Microsoft KeyStore using SunMSCAPI.
                      System.out.println("List of certificates found in Microsoft Personal Keystore:");
                       KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
                       ks.load(null, null) ;
                       Enumeration en = ks.aliases() ;
                       PublicKey RSAPubKey = null;
                       Key RSAPrivKey = null;
                       int i = 0;
                       while (en.hasMoreElements()) {
                            String aliasKey = (String)en.nextElement() ;              
                            X509Certificate c = (X509Certificate) ks.getCertificate(aliasKey) ;     
                            String sss = ks.getCertificateAlias(c);
                            if(sss.equals("C5151997"))
                            System.out.println("---> alias : " + sss) ;
                            i= i + 1;
                            String str = c.toString();
                            System.out.println(" Certificate details : " + str ) ;
                          RSAPubKey = c.getPublicKey();
                            RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()
                            Certificate[] chain = ks.getCertificateChain(aliasKey);     
                       System.out.println("No of certificates found from Personal MS Keystore: " + i);
                // Encrypt the generated Symmetric AES Key using RSA cipher      
                        Cipher rsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", ks.getProvider().getName());            
                       rsaCipher.init(Cipher.WRAP_MODE, RSAPubKey);
                       byte[] encryptedSymmKey = rsaCipher.wrap(aeskey);   
                       System.out.println("Encrypted Symmetric Key :" + new String(encryptedSymmKey));
                       System.out.println("Encrypted Symmetric Key Length in Bytes: " + encryptedSymmKey.length);
                       // RSA Decryption of Encrypted Symmetric AES key
                       rsaCipher.init(Cipher.UNWRAP_MODE, RSAPrivKey);
                       Key decryptedKey = rsaCipher.unwrap(encryptedSymmKey, "AES", Cipher.SECRET_KEY);Output:
    List of certificates found in Microsoft Personal Keystore:
    ---> alias : C5151997
    Certificate details : [
    Version: V3
    Subject: CN=C5151997, O=SAP-AG, C=DE
    Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
    Key: Sun RSA public key, 1024 bits
    modulus: 171871587533146191561538456391418351861663300588728159334223437391061141885590024223283480319626015611710315581642512941578588886825766256507714725820048129123720143461110410353346492039350478625370269565346566901446816729164309038944197418238814947654954590754593726047828813400082450341775203029183105860831
    public exponent: 65537
    Validity: [From: Mon Jan 24 18:17:49 IST 2011,
                   To: Wed Jan 23 18:17:49 IST 2013]
    Issuer: CN=SSO_CA, O=SAP-AG, C=DE
    SerialNumber: [    4d12c509 00000005 eb85]
    Certificate Extensions: 6
    [1]: ObjectId: 2.5.29.14 Criticality=false
    SubjectKeyIdentifier [
    KeyIdentifier [
    0000: 07 E5 83 A1 B2 B7 DF 6B 4B 67 9C 1D 42 C9 0D F4 .......kKg..B...
    0010: 35 76 D3 F7 5v..
    [2]: ObjectId: 2.5.29.35 Criticality=false
    AuthorityKeyIdentifier [
    KeyIdentifier [
    0000: E4 C4 2C 93 20 AF DA 4C F2 53 68 4A C0 E7 EC 30 ..,. ..L.ShJ...0
    0010: 8C 0C 3B 9A ..;.
    [3]: ObjectId: 1.3.6.1.4.1.311.21.7 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 30 30 2E 06 26 2B 06 01 04 01 82 37 15 08 82 .00..&+.....7...
    0010: D1 E1 73 84 E4 FE 0B 84 FD 8B 15 83 E5 90 1B 83 ..s.............
    0020: E6 A1 43 81 62 84 B1 DA 50 9E D3 14 02 01 64 02 ..C.b...P.....d.
    0030: 01 1B ..
    [4]: ObjectId: 2.5.29.17 Criticality=false
    SubjectAlternativeName [
    RFC822Name: [email protected]
    [5]: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    DigitalSignature
    Non_repudiation
    Key_Encipherment
    Data_Encipherment
    [6]: ObjectId: 2.5.29.19 Criticality=true
    BasicConstraints:[
    CA:false
    PathLen: undefined
    Algorithm: [SHA1withRSA]
    Signature:
    0000: B3 C5 92 66 8D D7 ED 6D 51 12 63 CC F4 52 18 B9 ...f...mQ.c..R..
    0010: B8 A6 78 F7 ED 7D 78 18 DA 71 09 C9 AE C8 49 23 ..x...x..q....I#
    0020: F5 32 2F 0F D1 C0 4C 08 2B 6D 3C 11 B9 5F 5B B5 .2/...L.+m<.._[.
    0030: 05 D9 CA E6 F9 0A 94 14 E7 C6 7A DB 63 FE E5 EC ..........z.c...
    0040: 48 94 8C 0D 77 92 59 DE 34 6E 77 1A 24 FE E3 C1 H...w.Y.4nw.$...
    0050: D8 0B 52 6A 7E 22 13 71 D7 F8 AF D1 17 C8 64 4F ..Rj.".q......dO
    0060: 83 EA 2D 6A CA 7F C3 84 37 15 FE 99 73 1D 7C D1 ..-j....7...s...
    0070: 6D B4 99 09 62 B9 0F 18 33 4C C6 66 7A 9F C0 DB m...b...3L.fz...
    No of certificates found from Personal MS Keystore: 1
    Exception in thread "main" java.security.InvalidKeyException: Unsupported key type: Sun RSA public key, 1024 bits
    modulus: 171871587533146191561538456391418351861663300588728159334223437391061141885590024223283480319626015611710315581642512941578588886825766256507714725820048129123720143461110410353346492039350478625370269565346566901446816729164309038944197418238814947654954590754593726047828813400082450341775203029183105860831
    public exponent: 65537
         at sun.security.mscapi.RSACipher.init(RSACipher.java:176)
         at sun.security.mscapi.RSACipher.engineInit(RSACipher.java:129)
         at javax.crypto.Cipher.init(DashoA13*..)
         at javax.crypto.Cipher.init(DashoA13*..)
         at com.sap.srm.crpto.client.applet.CryptoClass.main(CryptoClass.java:102)
    Edited by: sabre150 on 18-Jul-2011 03:47
    Added [ code] tags to make code readable.

    A bit of research indicates that the classes of the keys obtained by
                          RSAPubKey = c.getPublicKey();
                               RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()are sun.security.rsa.RSAPublicKeyImpl and sun.security.*mscapi*.RSAPrivateKey . It seems that for Cipher objects from the SunMSCAPI provider cannot accept RSA public keys of class sun.security.rsa.RSAPublicKeyImpl and that the SunMSCAPI will only accept RSA private keys of class sun.security.mscapi.RSAPrivateKey.
    This came up under different guise a couple of years ago. It makes sense since encrypting/wrapping with a public key does not represent a security problem (there is nothing secret in any of the encryption operations) when done outside of MSCAPI so one can use any provider that has the capability BUT the decryption/unwrapping must be done with the SunMSCAPI provider which delegates it to the MSCAPI.
    My working test code based on your code implementing this approach is :
            // RSA 1024 bits Asymmetric encryption of Symmetric AES key             
            // List the certificates from Microsoft KeyStore using SunMSCAPI.
            System.out.println("List of certificates found in Microsoft Personal Keystore:");
            KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
            ks.load(null, null);
            Enumeration en = ks.aliases();
            PublicKey RSAPubKey = null;
            Key RSAPrivKey = null;
            int i = 0;
            while (en.hasMoreElements())
                String aliasKey = (String) en.nextElement();
                X509Certificate c = (X509Certificate) ks.getCertificate(aliasKey);
                String sss = ks.getCertificateAlias(c);
                if (sss.equals("rsa_key")) // The alias for my key - make sure you change it back to your alias
                    System.out.println("---> alias : " + sss);
                    i = i + 1;
                    String str = c.toString();
                    System.out.println(" Certificate details : " + str);
                    RSAPubKey = c.getPublicKey();
             System.out.println(RSAPubKey.getClass().getName());
                   RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()
            System.out.println(RSAPrivKey.getClass().getName());
                    Certificate[] chain = ks.getCertificateChain(aliasKey);
            System.out.println(ks.getProvider().getName());
            System.out.println("No of certificates found from Personal MS Keystore: " + i);
            Cipher rsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");//, ks.getProvider().getName());       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                rsaCipher.init(Cipher.WRAP_MODE, RSAPubKey);
            byte[] keyBytes =
                1, 2, 3, 4, 5, 6, 7, 8, 2, 3, 4, 5, 6, 7, 8, 9
            SecretKey aeskey = new SecretKeySpec(keyBytes, "AES");
            byte[] encryptedSymmKey = rsaCipher.wrap(aeskey);
            System.out.println("Encrypted Symmetric Key :" + Arrays.toString(encryptedSymmKey));
            System.out.println("Encrypted Symmetric Key Length in Bytes: " + encryptedSymmKey.length);
            // RSA Decryption of Encrypted Symmetric AES key
            Cipher unwrapRsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", ks.getProvider().getName());       //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            unwrapRsaCipher.init(Cipher.UNWRAP_MODE, RSAPrivKey);
            Key decryptedKey = unwrapRsaCipher.unwrap(encryptedSymmKey, "AES", Cipher.SECRET_KEY);
            System.out.println("Decrypted Symmetric Key :" + Arrays.toString(decryptedKey.getEncoded())); // Matches the 'keyBytes' above

  • Invalid key length: exception

    Hi,
    I will really appreciate if someone can help me on this.
    I created a keystore using below tool
    keytool -genkey -v -alias myAlias -keyalg DSA -keystore myKey.keystore -storetype JCEKS -provider com.sun.crypto.provider.SunJCEI am using following code to encrypt the data.
    Cipher cipher = Cipher.getInstance("DESede/ECB/PKCS5Padding",provider.getName());
    Key key = store.getKey(myAlias, myPassword);
    cipher.init(Cipher.ENCRYPT_MODE, key);
    encrypted = cipher.doFinal(data);But I get following error everytime,
    java.security.InvalidKeyException: Invalid key length: 335 bytes
    at com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)I will appreciate if who can advice me on this issue.
    Thanks,
    Rouble

    Please look at http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=65&t=001211

  • Crystal Reports XI Developer Edition - Invalid Key

    Hi All,
    I have downloaded Crystal Reports XI Developer Edition trial from Business Objects site and received the key for the same by email.
    Key Code: CP80U-F1YV0X7-0006VH1-AP81
    When i input the same key during installation, i receive an error message saying the key is invalid. I tried again by re-registering and got the same key from Business Objects.
    Has any one faced this problem?  Please help me in getting the right key.
    regards,
    Pruthvi R

    Hi Pruthvi,
    Try this:
    For a new key:
    Request key codes for new orders via SAP Marketplace (SMP), will receive a download letter on new purchases providing them with their SMP login credentials. Using these credentials you can login and click in the "Keys & Requests" tab > Request a License key.
    If your Key code does not work
    You need create a customer message https://websmp107.sap-ag.de/message using component XX-SER-LIKEY-BOJ.
    Regards,
    Shweta

Maybe you are looking for

  • Billing cannot be realease automatically to accounting

    Hi All, I have a problem to release the billing automatically  to Accounting. In my current scenario i have to go to TC VF02 after billing has been saved and release it manually. But in my Dev Client it can be post to accounting automatically. Would

  • Sending a huge video clip via email?

    hey, what is the easiest way for me to send a video clip to someone via email. In quicktime & FCut the file is HUGE around 1000 mb, I have compressed it using compressor to H.264 but it is still 22 mb and on the email the video viewer is sooo small l

  • GL accounts in Price change

    Hi I have posted price change document and now analyzing which GL accounts are hit. Its bit strange but GL accounts which are hit are not defined in OBYC. I am not able to understand which GL are picked by the system and from where are they picked if

  • Time slot proofs

    can anyone tell me why we using 51.2microseconds for time slots? or 512bit as the minimum frame size? i've tried to calculate that x=(2500*2(distance))/(2*10(8)) it get 25micsecond

  • Cost centre validation

    Hi Gurus, I have a requrement, that there has to be a validation on the cost centre with the Personnel area such that, if the wrong cost centre is assigned to a personnel area, error should be thrown and the assignment should be not possible. Is ther