title: Upgrade openssl to resolve DSA-5139-1 for Docker openjdk:17.0-jdk-slim-bullseye
body: <p>I am using the Debian JDK image in my docker file which introduced a security vulnaribilty DSA-5139-1<a href="https://snyk.io/test/docker/openjdk%3A17.0-jdk-slim-bullseye" rel="nofollow noreferrer"> [https://snyk.io/test/docker/openjdk%3A17.0-jdk-slim-bullseye]</a></p>
  <p>This is my docker file -</p>
  <pre><code>FROM openjdk:17-jdk-slim-bullseye
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y ca-certificates wget bash
  </code></pre>
  <p>When I build image, it gives me below version of openssl -</p>
  <pre><code>C:\docker-test&gt;docker run -it openssl_test openssl version
  OpenSSL 1.1.1n  15 Mar 2022
  </code></pre>
  <p>I tried to install OpenSSL 1.1.1o forcefully but when I get into bash and run openssl version, it always shows me the same version (1.1.1n) -</p>
  <pre><code>FROM openjdk:17-jdk-slim-bullseye
  
  RUN apt-get -y remove openssl
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y ca-certificates wget bash
      
  RUN wget https://www.openssl.org/source/openssl-1.1.1o.tar.gz 
  </code></pre>
  <p>Then I tried below to force the installation of openssl 1.1.1o but seems &quot;tar&quot; doesn't work -</p>
  <pre><code>FROM openjdk:17-jdk-slim-bullseye
  
  RUN apt-get -y remove openssl
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y ca-certificates wget bash \
      &amp;&amp; wget https://www.openssl.org/source/openssl-1.1.1o.tar.gz \
      &amp;&amp; tar -xzvf openssl-1.1.1o
      
  WORKDIR /openssl-1.1.1o
  RUN ./config --prefix=/usr/local/openssl --openssldir=/usr/local/openssl &amp;&amp; make &amp;&amp; make install
  </code></pre>
  <p>I get this error while building image -</p>
  <pre><code>#5 12.01 2022-05-20 19:22:46 (3.01 MB/s) - ‘openssl-1.1.1o.tar.gz’ saved [9856386/9856386]
  #5 12.01
  #5 12.01 tar (child): openssl-1.1.1o: Cannot open: No such file or directory
  #5 12.01 tar (child): Error is not recoverable: exiting now
  #5 12.01 tar: Child returned status 2
  #5 12.01 tar: Error is not recoverable: exiting now
  </code></pre>
  <p>Any help would be appreciated.</p>