Menu

No Key Encryption Key loaded and cannot deter

Help
2007-09-10
2013-04-17
  • Ajay Upadhyaya

    Ajay Upadhyaya - 2007-09-10

    Hello,

    I'm trying this suite and running the junit test SAMLTokenDecrypterTest gives following error. Any help would be greatly appreciated.

    Thanks
    Ajay

    =================

    984 [main] DEBUG org.apache.xml.security.keys.KeyInfo  - I couldn't find a secret key using the system-wide key resolvers
    984 [main] ERROR org.apache.xml.security.encryption.XMLCipher  - XMLCipher::decryptElement called without a key and unable to resolve
    984 [main] ERROR de.fraunhofer.fokus.jic.rp.SAMLTokenDecrypter  -
    org.apache.xml.security.encryption.XMLEncryptionException: No Key Encryption Key loaded and cannot determine using key resolvers
        at org.apache.xml.security.encryption.XMLCipher.decryptToByteArray(Unknown Source)
        at org.apache.xml.security.encryption.XMLCipher.decryptElement(Unknown Source)
        at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown Source)
        at de.fraunhofer.fokus.jic.rp.SAMLTokenDecrypter.decryptIt(SAMLTokenDecrypter.java:223)
        at de.fraunhofer.fokus.jcardspace.rp.test.SAMLTokenDecrypterTest.testDecryptIt(SAMLTokenDecrypterTest.java:125)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:615)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

     
    • Steffen Konegen

      Steffen Konegen - 2007-09-20

      The problem is, that not private key for decryption of the saml token was found. This can have some reason: the password for the keystore is false, the keystore file or a JCE provider can not be found. Can you please check you configuration?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.