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

BC FIPS FipsOperationError: Module checksum failed: entry

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 1.5.1.Final
    • Fix Version/s: None
    • Component/s: SSL
    • Labels:
      None

      Description

      In tests I am registering bc providers for EAP server using -Djava.ext.dirs system property. When this folder contains two jars bc-fips-1.0.1.jar and bc-fips-debug-1.0.1.jar I get exception

      Exception in thread "main" org.bouncycastle.crypto.fips.FipsOperationError: Module checksum failed: entry
      	at org.bouncycastle.crypto.fips.FipsStatus.checksumValidate(Unknown Source)
      	at org.bouncycastle.crypto.fips.FipsStatus.isReady(Unknown Source)
      	at org.bouncycastle.crypto.CryptoServicesRegistrar.getDefaultMode(Unknown Source)
      	at org.bouncycastle.crypto.CryptoServicesRegistrar.<clinit>(Unknown Source)
      	at org.bouncycastle.jcajce.provider.ProvSecureHash$MD5.configure(Unknown Source)
      	at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
      	at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
      	at org.bouncycastle.jcajce.provider.BouncyCastleFipsProvider.<init>(Unknown Source)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at java.lang.Class.newInstance(Class.java:442)
      	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:221)
      	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
      	at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
      	at sun.security.jca.ProviderList.loadAll(ProviderList.java:282)
      	at sun.security.jca.ProviderList.removeInvalid(ProviderList.java:299)
      	at sun.security.jca.Providers.getFullProviderList(Providers.java:173)
      	at java.security.Security.insertProviderAt(Security.java:360)
      	at java.security.Security.addProvider(Security.java:403)
      	at org.jboss.modules.Main$AddProviderAction.run(Main.java:667)
      	at org.jboss.modules.Main$AddProviderAction.run(Main.java:659)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.jboss.modules.Main.main(Main.java:576)
      Caused by: java.lang.NullPointerException: entry
      	at java.util.zip.ZipFile.getInputStream(ZipFile.java:361)
      	at java.util.jar.JarFile.getInputStream(JarFile.java:447)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mchoma Martin Choma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: