Results 1 to 1 of 1
  1. #1
    alexag is offline Member
    Join Date
    Dec 2010
    Rep Power

    Lightbulb Unwrapping a key using a certificate

    Hi all,

    I have to write java code that would wrap a key, using a certificate, and reversely unwrap that key afterwards.
    I'm half way there, since wrapping seems to work all right, but when it comes to unwrapping, I'm getting a "data hash wrong" error.

    And this happens in both cases, ie no matter if I'm using the certificate or its public key.

    I've been googling around for the pas 2 days, but could not find any relevant example to help me out :(

    Thank you in advance for any hint you could give :)

    PFA source code I'm using.
    Attached Files Attached Files

Similar Threads

  1. CAS certificate issue
    By pacificz in forum Advanced Java
    Replies: 4
    Last Post: 07-24-2010, 07:11 PM
  2. PDFBox certificate malformed
    By wanderer2019 in forum Advanced Java
    Replies: 0
    Last Post: 06-09-2010, 10:29 AM
  3. SUN 310-813 certificate
    By koko12 in forum Java Certification
    Replies: 2
    Last Post: 11-24-2009, 05:33 PM
  4. HTTPS using certificate
    By MCJP in forum Advanced Java
    Replies: 1
    Last Post: 09-25-2008, 01:48 PM
  5. Java certificate
    By Nick15 in forum Java Certification
    Replies: 2
    Last Post: 11-12-2007, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts