Skip to content

Instantly share code, notes, and snippets.

@Thynix Thynix/build.sh
Last active Nov 6, 2018

Embed
What would you like to do?
Script to allow disabling JRE ECDSA for a Java 7 Docker jar build
# Disable ECDSA to avoid `Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error`
# when running ./gradlew jar; see https://github.com/docker-library/openjdk/issues/117#issuecomment-307222367
sed -i 's/RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224/RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224, ECDSA/' /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/security/java.security
./gradlew jar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.