java.lang.IllegalStateException: Cannot load keys from store: file [/Users/dturanski/dev/spring-cloud-config-demo/my-service/src/main/resources/server.jks]

GitHub | dturanski | 4 months ago
  1. 0

    encrypt requires key password and store password to be the same

    GitHub | 4 months ago | dturanski
    java.lang.IllegalStateException: Cannot load keys from store: file [/Users/dturanski/dev/spring-cloud-config-demo/my-service/src/main/resources/server.jks]
  2. 0

    Problem with key management

    GitHub | 2 years ago | beku8
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionBootstrapConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.security.crypto.encrypt.TextEncryptor org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration.encryptor; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'textEncryptor' defined in class org.springframework.cloud.bootstrap.encrypt.EncryptionBootstrapConfiguration$RsaEncryptionConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.security.crypto.encrypt.TextEncryptor]: Factory method 'textEncryptor' threw exception; nested exception is java.lang.IllegalStateException: Cannot load keys from store: class path resource [server.jks]
  3. 0

    encrypted passwords in /etc/rundeck/ssl/ssl.properties not working

    Google Groups | 12 months ago | Kris Musard
    java.security.UnrecoverableKeyException: Cannot recover key
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat in Eclipse giving java.security.UnrecoverableKeyException- Cannot recover key error

    Stack Overflow | 11 months ago | Archit Kapoor
    java.security.UnrecoverableKeyException: Cannot recover key
  6. 0

    EMM server not starting after following ios configuration steps

    Stack Overflow | 8 months ago | Dev Vendor
    org.apache.thrift.transport.TTransportException: Error creating the transport

    15 unregistered visitors
    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.UnrecoverableKeyException

      Cannot recover key

      at sun.security.provider.KeyProtector.recover()
    2. Java RT
      KeyStore.getKey
      1. sun.security.provider.KeyProtector.recover(KeyProtector.java:328)
      2. sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:146)
      3. sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:56)
      4. sun.security.provider.KeyStoreDelegator.engineGetKey(KeyStoreDelegator.java:96)
      5. sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetKey(JavaKeyStore.java:70)
      6. java.security.KeyStore.getKey(KeyStore.java:1023)
      6 frames
    3. org.springframework.security
      KeyStoreKeyFactory.getKeyPair
      1. org.springframework.security.rsa.crypto.KeyStoreKeyFactory.getKeyPair(KeyStoreKeyFactory.java:57)
      2. org.springframework.security.rsa.crypto.KeyStoreKeyFactory.getKeyPair(KeyStoreKeyFactory.java:44)
      2 frames
    4. org.springframework.cloud
      EncryptCommand$EncryptOptionHandler.run
      1. org.springframework.cloud.cli.command.encrypt.BaseEncryptOptionHandler.createEncryptor(BaseEncryptOptionHandler.java:78)
      2. org.springframework.cloud.cli.command.encrypt.EncryptCommand$EncryptOptionHandler.run(EncryptCommand.java:58)
      2 frames
    5. Spring Boot CLI
      SpringCli.main
      1. org.springframework.boot.cli.command.options.OptionHandler.run(OptionHandler.java:91)
      2. org.springframework.boot.cli.command.OptionParsingCommand.run(OptionParsingCommand.java:54)
      3. org.springframework.boot.cli.command.CommandRunner.run(CommandRunner.java:219)
      4. org.springframework.boot.cli.command.CommandRunner.runAndHandleErrors(CommandRunner.java:171)
      5. org.springframework.boot.cli.SpringCli.main(SpringCli.java:54)
      5 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. Spring Boot Loader
      MainMethodRunner.run
      1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:54)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame