I have a docker application that runs a java jar inside from the command line. I have set up the docker container to pass through "other java options", and in this case I would like to pass the following:
jdk.certpath.disabledAlgorithms=MD2, MD5, RSA keySize < 128, DSA keySize < 128, EC keySize < 128
I was hoping to be able to pass it in via -Djdk.etc but the spaces seem to really throw things off. With the spaces java complains it doesn't know what to do with the MD5 and later ("Error: Could not find or load main class MD5,". Without the spaces, I get errors about keySize<
being an unknown main class.
Can someone please help me with the proper way to pass this parameter in? I have tried surrounding the whole thing in quotes yet the results are the same.
You should surround only variable value -Dvar="a < b"
works for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With