javaspring-bootsecuritydocker-composekeystore

java.security.KeyStoreException when running my app with docker-compose


I have my spring boot project connected to mysql and cassandra db. When I run it locally with spring boot, all went ok. I use docker-compose to run these three services. For three weeks, my application runs without problems. But now an error occure : Caused by: java.security.KeyStoreException: Key protection algorithm not found: java.security.UnrecoverableKeyException: Encrypt Private Key failed: unrecognized algorithm name: PBEWithSHA1AndDESede. Can someone help me please?


Solution

  • Recently got the same problem and found the following discussion saying it is a bug that happens on JDK 8u292 but not on 8u282: https://github.com/bcgit/bc-java/issues/941

    In my case, I switched back to 8u282 and the error is gone.