Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-30630

FIPS Java-11-headless ssl.SSLException: java.security.NoSuchProviderException: no such provider: SunEC

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • rhel-9.3.0
    • java-11-openjdk
    • None
    • Important
    • rhel-sst-java
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Performing a Get request on `https://github.com` fails with the following error message: ssl.SSLException: java.security.NoSuchProviderException: no such provider: SunEC.

      Please provide the package NVR for which bug is seen:

      java-11-openjdk-headless-11.0.22.0.7-2.el9.x86_64

      How reproducible:

      Every time

      Steps to reproduce

      1. Create a FIPS enabled VM (setting `-Dcom.redhat.fips=true` has no effect)
      1. Install Docker
      1. Download the java-fips-issue.tarattachment file containing the PoC
      2. Run `docker build -t fips-issue .`
      1. Run the container using `docker run -d -p 8080:8080 fips-issue`
      1. Run `curl --location 'http://localhost:8080/download' --header 'Content-Type: application/json' --data '{"repoUrl": "https://api.github.com/repos/ichinna/fips-poc/zipball"}'`
      1. Inspect container logs

      Expected results

      The Get request should work as expected

      Actual results

      The get request fails with the following error message: ssl.SSLException: java.security.NoSuchProviderException: no such provider: SunEC

      Notes

      • This issue started happening recently without any component changes in our container
      • We managed to find a temporary workaround for this issue by manually adding the GitHub certificate inside our trusted store, eliminating the need for SunEC.
      • Passing `-Dcom.redhat.fips=false` to the java options also fixes this issue.

              rhn-engineering-ahughes Andrew Hughes
              mun-iulian-uipath Iulian Munteanu (Inactive)
              Andrew Hughes Andrew Hughes
              David Kutalek David Kutalek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: