Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Fix OpenJDK in Docker Image #10

Open
arjenpdevries opened this issue May 29, 2018 · 0 comments
Open

Fix OpenJDK in Docker Image #10

arjenpdevries opened this issue May 29, 2018 · 0 comments

Comments

@arjenpdevries
Copy link

My students use SBT, and when SBT attempts to contact the jitpack.io servers (for warcutils) I get security errors: java.security.InvalidKeyException: EC parameters error.

You can find the fix (borrowed from the Travis team) in my instructions:
https://rubigdata.github.io/course/background/sbt.html

Basically:

apt-get install libbcprov-java
ln -s /usr/share/java/bcprov.jar /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext/bcprov.jar \
        && awk -F . -v OFS=. 'BEGIN{n=2}/^security\.provider/ {split($3, posAndEquals, "=");$3=n++"="posAndEquals[2];print;next} 1' \
             /etc/java-7-openjdk/security/java.security > /tmp/java.security \
        && echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" >> /tmp/java.security \
        && mv /tmp/java.security /etc/java-7-openjdk/security/java.security

Would be great if that patch of the OpenJDK to use the BouncyCastle 🌴 🏰 security provider could already be applied in the Docker image.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant