OpenJDK on OpenShift: “NoSuchAlgorithmException: EC AlgorithmParameters not available”

对着背影说爱祢 提交于 2019-12-03 09:05:05

Found a solution.

You can define a properties file to override some of the keys defined in the default JRE file jre/lib/security/java.security

This file can be specified in the JAVA_OPTS_EXT environment property of the OpenShift Gear.

These are the steps that we took to fix the issue.

Create the file

  • rhc ssc gearName
  • cd $OPENSHIFT_DATA_DIR
  • vi override_security.properties
  • content is jdk.tls.disabledAlgorithms=EC,ECDHE,ECDH
  • pwd -> and note down (copy) the full path location of the just created file.
  • exit

Set the environment variable

  • rhc env set JAVA_OPTS_EXT=-Djava.security.properties=file:fileLocation -a gearName

Restart your gear/app

  • rhc app restart -a gearName

That did the trick for us.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!