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

Ability to provide password piped to PKCS11HSMKeyTool

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.12.0
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Customer
    • Sprint:
      EJBCA Sprint 9

      Description

      See linked issue, you used to be able to provide the password piped into the command from a file.

      ./ejbcaClientToolBox.sh PKCS11HSMKeyTool sign /usr/local/lib/softhsm/libsofthsm2.so TOKEN_LABEL:slot1 /tmp/cs_pkcs11_R2.log /tmp/signed.txt signKey < pwd.txt

      The ability dissapeared when we dropped support for JDK5, and the jline library. It's easy to restore though, just check if we have a console, if not read from stdin.

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Henrik Sunmark
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: