Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6554

clientToolBox test with 8192 bit RSA keys fails with exception

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.12.0
    • Component/s: clientToolBox
    • Labels:
      None
    • Issue discovered during:
      Ad Hoc
    • Sprint:
      EJBCA Sprint 7

      Description

      Testing of key: signKey8knr3
      Private part:
      SunPKCS11-libsofthsm2.so-slot2034558108 RSA private key, 8192 bits (id 5, token object, sensitive, unextractable)
      RSA key:
      modulus: aeba7a716c03ff966414cb397697c46508cf94d9a11c3b460cb546055a10ce5bf7a60dad171ee64a7f41254222a57c649c5a9a7a1ea86233a7c0a50732c0623042706fd5f1666ff01bd4d3b85ee3e1ec69d9c4a1e63bd887095825cc0c0ca25cad78cd39316cde3edc636728959de5db43245ceb16541349d2f22ede78fdc5f8640348785c835c7c1ba691bf24638a06444c2b55ce6d13ec1f2daa6595035b4b65154169bdb3511afd84e1c69655e81e4ac28903049b79d2ad927459cf976ac0e2461b3015f04d4482bce76bd5a7765a32018bf8d528c2784dcfd0499e9aa817c90ad845dfce8cb36099ef69ffb63bc3eba2afd1c097039e365b6b86df308f08b3afcfa7042c9547693af3763caedf4e67ad7524bdb3e15e79c925d96e13288a01fd87280f1b5774ef20937969a0d3b264829d6fbd7b50f5ac8ffd1193ef8a1633fe34e89c92652e2bb8cf673f1f7fd0b4fdd0fc8e1b693186f87a2fb567b6fb6bbd5a61819edd1f97f9996624b747b8890c466b30496dce9c04d5b5a9f64b47cb3b6a80170fbb0fc36ff585894c866832df46c586f48c4006e9c78468baa06fc8b369689f381ec8535750657529a84d960a0480bd9660c5bc1d46ee0af7053e0f6d9d76ea14883154a3f595341681fef7bd79133df6f1e41f2937c0e75a4f889c35ab44d7ae9657203461acac3911a26d3a6e3ab86e79c58b0ca4eca86da7f51281c835b148e27e5cd25626dfc89acbc9c6f8dbeb35a2a4acb9ee84c2bf394561e0215246104ed56aa137b32b5458e6c771c894b8db16fa99e99b0e9e321963b343de9c21de7a3a34fc96a2a6cd1449dcd8a74cc763bbd2942248fb79f910ca5a7990d27a0f1d262690712fdcfcd6fbe2ab1a2ddae9ca58f5ca24140c9b8a7c50085f92928c5f2d514d79828cf9f55784645a1de6f57f7756fefadf0d41b0cb5cb9ea826687a3921ad91e5fb74c969e895b2d29f7351959e0e1c20b1dfb2148e04b82f7467f35768e3d78963d949d30603af93d33eba39917a25affe35b7311ef76b3c9847c4e8dee4e18d7fef9e5dcb7281c521794924b38e664fda32a6fe214bde44845c1f2e7ba0b7c7f318e0b9c7bc9089680eafa887890fccedb5135eb165b57eca8b592e92dd96468de69729464beef722cfeb9a4b6281bcb1e9e435c08b31bdabff34db9114957ef34bf563f2dbb4488a5d99b828a4daf08b27b3ee1f0f1c8cd0ee25f4a0d0342f8d4519679af1e29a9c600ff64b0aa688a23d0d937de737903f17a2fa7d45ecd85d2e6c3a2231e0bf2f519dbe6ac16a0afa325886c55e3eeaec9af596197fb3bb580a5724de6c1611d969a22107100b88fc4efdee8fa36f515661226c28a8cca7c4345b6848ab998cb339f0472aaf3441c0d9b4ca4e402e9a993864225f3ca4f8ea0a1ecbadb132d35d67b6b860f2057782a3b32a7
      public exponent: 10001
      Security related private key attributes: CKA_SENSITIVE = true CKA_ALWAYS_SENSITIVE = true CKA_EXTRACTABLE = false CKA_NEVER_EXTRACTABLE = true CKA_PRIVATE = true CKA_DERIVE = false CKA_MODIFIABLE = true
      java.lang.StringIndexOutOfBoundsException: String index out of range: 1013
      at java.lang.String.substring(String.java:1963)
      at org.ejbca.ui.cli.KeyStoreContainerTest$Crypto.<init>(KeyStoreContainerTest.java:231)
      at org.ejbca.ui.cli.KeyStoreContainerTest$NormalTest.doIt(KeyStoreContainerTest.java:517)
      at org.ejbca.ui.cli.KeyStoreContainerTest.startNormal(KeyStoreContainerTest.java:146)
      at org.ejbca.ui.cli.KeyStoreContainerTest.test(KeyStoreContainerTest.java:85)
      at org.ejbca.ui.cli.HSMKeyTool.doIt(HSMKeyTool.java:639)
      at org.ejbca.ui.cli.HSMKeyTool.execute(HSMKeyTool.java:699)
      at org.ejbca.ui.cli.ClientToolBox.executeIfSelected(ClientToolBox.java:38)
      at org.ejbca.ui.cli.ClientToolBox.main(ClientToolBox.java:63)
      2018-01-18 08:45:56,968 INFO [org.cesecore.keys.util.SignWithWorkingAlgorithm] Signature algorithm 'SHA1WithRSA' working for provider 'SunPKCS11-libsofthsm2.so-slot2034558108 version 1.8'.
      Signature test of key signKey8knr3: signature length 1024; first byte 59; verifying true

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Verified by:
            Mike Agrenius Kushner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: