I have a very unique error today, so basically my RHEL 8 (Red Hat Enterpise Linux) cannot connect to another system due to SSL issue. The exception is quite clear, and can be seen below.
error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
It is quite easy to do it in a standalone infrastructure, but this problem happen on a containerized application which make it much more complicated.
After searching for a solution, i come up with this Dockerfile
FROM registry.redhat.io/application/application-rhel8:7.8.0 user root RUN update-crypto-policies --set LEGACY user 185
docker build -f Dockerfile -t application-rhel8-modified:7.8.0 .
Deploy it, and i can see that the previous error is no longer exist.