Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-2228

Update the exception message that occurs when no SSLContext implementation is provided by the configured providers

XMLWordPrintable

      When no SSLContext implementation is provided by the configured providers, the following exception message is shown:

      "java.security.NoSuchAlgorithmException: ELY04001: No algorithm found matching TLS/SSL protocol selection criteria
          Caused by: java.security.NoSuchAlgorithmException: ELY04001: No algorithm found matching TLS/SSL protocol selection criteria"}}
      

      See https://github.com/wildfly-security/wildfly-elytron/blob/1.x/ssl/src/main/java/org/wildfly/security/ssl/SSLUtils.java#L162-L167.

      Notice the error message that is used comes from ElytronMessages.log.noAlgorithmForSslProtocol()

      The current calls to the exception messages should be updated to something like:

      ElytronMessages.log.noSslContextProvided(SERVICE_TYPE)

      where the message is:

      "No '%s' provided by the configured providers"

       

              rchakrab Ranabir Chakraborty
              fjuma1@redhat.com Farah Juma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: