From: Simon M. <sim...@in...> - 2009-07-09 10:12:30
|
Hello, i am currently trying to create an EKCertificate, but i get this exception: Exception in thread "main" java.lang.RuntimeException: BUG? cannot convert key to OAEP at iaik.tc.cert.common.Common.publicRSAtoPublicRSAOAEP(Common.java:352) at iaik.tc.cert.EKCertificate.create(EKCertificate.java:150) .... The code which generates this is the following: X509Certificate ekCertificate = EKCertificate.create(prop, privacyCACertificate, privKeyPrivacyCa_, ekPubKey); If i create the ekPubKey by myself, using KeyPairGenerator it all works fine. But when i want to use the PublicEK from the TPM it fails with the above described error message. I get the EK from the TPM with the following Code: TcTpmPubkey pubTPMEK = new TcTpmPubkey(tpm.getPubEndorsementKeyOwner().getPubKey()); RSAPublicKey ekPubKey = TcCrypto.pubTpmKeyToJava(pubTPMEK); I hope for some advice. Thank you, best regards Simon Mittelberger |