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

OpenSSL 3.0 & .NET: The remote certificate is invalid on Get when using CheckCertificateRevocationList

Details

    • Bug
    • Resolution: Done
    • Undefined
    • None
    • rhel-9.3.0
    • openssl
    • Blocker
    • sst_security_crypto
    • ssg_security
    • 0.5
    • False
    • Hide

      None

      Show
      None
    • Crypto24Q1
    • x86_64

    Description

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

      Running a Get request with ** CheckCertificateRevocationList flag enabled causes the following error on UBI9: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown, OfflineRevocation.
      We are currently encountering this error on both dotnet 7 and 8.

      Please provide the package NVR for which bug is seen:

      openssl-3.0.7-25.el9_3.x86_64

      aspnetcore-runtime-7.0-7.0.15-1.el9_3.x86_64

      aspnetcore-runtime-8.0-8.0.1-1.el9_3.x86_64

      Steps to reproduce

      1. Create a .NET Console project using dotnet 7 or 8
      2. Use the attached code in Program.cs
      3. Add the attached Dockerfilein the project folder
      4. Build & run the docker container

      Expected results

      The demo app should run without any errors

      Actual results

      The demo fails with the following error:
      Unhandled exception. System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
       ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown, OfflineRevocation

      Notes

      • Replacing the UBI9 image with the official MS image (mcr.microsoft.com/dotnet/runtime:7.0) fixes the issue.
      • Recompiling the same version of OpenSSL (without RH patches) also fixes the issue.

      Attachments

        1. Dockerfile
          0.8 kB
        2. Program.cs
          0.5 kB

        Issue Links

          Activity

            People

              dbelyavs@redhat.com Dmitry Belyavskiy
              mun-iulian-uipath Iulian Munteanu
              Dmitry Belyavskiy Dmitry Belyavskiy
              SSG Security QE SSG Security QE
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: