java.security.KeyStoreException: Uninitialized keystore

Oracle Community | 807573 | 9 years ago
  1. 0

    Could not generate template spMeta/spExtended XML file using saml2meta

    Oracle Community | 9 years ago | 807573
    java.security.KeyStoreException: Uninitialized keystore
  2. 0

    Hi, I created a key store and self signed key/cert pair for signing XML. And I created store password file and key password file with passwords encrypted using ampassword utility. And when I tried to run the flooiwng command: famadm create-metadata-templ --adminid amadmin --password-file \famAdminTools\opensso\bin\password --entityid myIDP --identityprovider myIDP -- meta-data-file .\myIDP.xml --extended-data-file .\myIDPX.xml --idpscertalias idpkey --spec wsfed I go this: Hosted entity configuration for realm, null was written to file, .\myIDPX.xml. Exception in thread "main" java.lang.NullPointerException at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.addWSFedIdentit yProviderTemplate(CreateWSFedMetaDataTemplate.java:128) at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.createStandardM etaTemplate(CreateWSFedMetaDataTemplate.java:80) at com.sun.identity.federation.cli.CreateMetaDataTemplate.buildWSFedDesc riptorTemplate(CreateMetaDataTemplate.java:592) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleWSFedReq uest(CreateMetaDataTemplate.java:149) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleRequest( CreateMetaDataTemplate.java:113) at com.sun.identity.cli.SubCommand.execute(SubCommand.java:286) Then in the libSAML log file I go this: 10/10/2008 05:01:34:906 PM CDT: Thread[main,5,main] ERROR: mapPk2Cert.JKSKeyProvider: java.io.IOException: Keystore was tampered with, or password was incorrect at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source) at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source) at java.security.KeyStore.load(Unknown Source) at com.sun.identity.saml.xmlsig.JKSKeyProvider.mapPk2Cert (JKSKeyProvider.java:137) at com.sun.identity.saml.xmlsig.JKSKeyProvider.<init> (JKSKeyProvider.java:173) at com.sun.identity.saml.xmlsig.JKSKeyProvider.<init> (JKSKeyProvider.java:159) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.sun.identity.saml2.key.KeyUtil.<clinit>(KeyUtil.java:76) at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.addWSFedIdentityProviderTe mplate(CreateWSFedMetaDataTemplate.java:128) at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.createStandardMetaTemplate (CreateWSFedMetaDataTemplate.java:80) at com.sun.identity.federation.cli.CreateMetaDataTemplate.buildWSFedDescriptorTempl ate(CreateMetaDataTemplate.java:592) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleWSFedRequest (CreateMetaDataTemplate.java:149) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleRequest (CreateMetaDataTemplate.java:113) at com.sun.identity.cli.SubCommand.execute(SubCommand.java:286) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:207) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:129) at com.sun.identity.cli.CommandManager.serviceRequestQueue (CommandManager.java:535) at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:144) at com.sun.identity.cli.CommandManager.main(CommandManager.java:121) Caused by: java.security.UnrecoverableKeyException: Password verification failed ... 24 more 10/10/2008 05:01:34:906 PM CDT: Thread[main,5,main] ERROR: Unable to get cert alias:idpkey java.security.KeyStoreException: Uninitialized keystore at java.security.KeyStore.getCertificate(Unknown Source) at com.sun.identity.saml.xmlsig.JKSKeyProvider.getX509Certificate (JKSKeyProvider.java:201) at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.addWSFedIdentityProviderTe mplate(CreateWSFedMetaDataTemplate.java:128) at com.sun.identity.workflow.CreateWSFedMetaDataTemplate.createStandardMetaTemplate (CreateWSFedMetaDataTemplate.java:80) at com.sun.identity.federation.cli.CreateMetaDataTemplate.buildWSFedDescriptorTempl ate(CreateMetaDataTemplate.java:592) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleWSFedRequest (CreateMetaDataTemplate.java:149) at com.sun.identity.federation.cli.CreateMetaDataTemplate.handleRequest (CreateMetaDataTemplate.java:113) at com.sun.identity.cli.SubCommand.execute(SubCommand.java:286) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:207) at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:129) at com.sun.identity.cli.CommandManager.serviceRequestQueue (CommandManager.java:535) at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:144) at com.sun.identity.cli.CommandManager.main(CommandManager.java:121) I tried to change the passoword file to clear text but had no luck. I douled checked my passwords and I'm pretty sure it's correct. I can't figure out what's wrong there.. Thanks Vincent

    Java.net JIRA | 8 years ago | vincentchentx
    java.security.KeyStoreException: Uninitialized keystore
  3. 0

    JavaFX native bundle exe is throwing "JavaFx launcher Exception"

    Oracle Community | 4 years ago | 875776
    java.security.KeyStoreException: Uninitialized keystore
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    1st attempt: 'ENCRYPT then SERIALIZE' (Security forum at Coderanch)

    coderanch.com | 8 months ago
    java.security.KeyStoreException: Uninitialized keystore
  6. 0

    Solving java.security.KeyStoreException: Uninitialized keystore Exception | Weblogic - TechPaste

    techpaste.com | 5 months ago
    java.security.KeyStoreException: Uninitialized keystore

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.security.KeyStoreException

      Uninitialized keystore

      at java.security.KeyStore.getCertificate()
    2. Java RT
      KeyStore.getCertificate
      1. java.security.KeyStore.getCertificate(KeyStore.java:787)
      1 frame
    3. com.sun.identity
      SAML2Meta.main
      1. com.sun.identity.saml.xmlsig.JKSKeyProvider.getX509Certificate(JKSKeyProvider.java:177)
      2. com.sun.identity.saml2.meta.SAML2MetaSecurityUtils.buildX509Certificate(SAML2MetaSecurityUtils.java:425)
      3. com.sun.identity.saml2.meta.SAML2Meta.buildDescriptorTemplate(SAML2Meta.java:968)
      4. com.sun.identity.saml2.meta.SAML2Meta.runTemplate(SAML2Meta.java:911)
      5. com.sun.identity.saml2.meta.SAML2Meta.runCommand(SAML2Meta.java:347)
      6. com.sun.identity.saml2.meta.SAML2Meta.main(SAML2Meta.java:313)
      6 frames