Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-22826

Crypto helper wants Digital Signatures configured

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4.14
    • Fix Version/s: 7.6.0, 7.4.22
    • Component/s: CryptoPlugin
    • Labels:
      None

      Description

      I specified public and private keys in ECL when instantiating the STD.Crypto.PublicKeyEncryption module, but the code fails with this error:
      Error: System error: -1: digiSign:Creating Digital Signatures not configured (0, 0), -1,

       

      IMPORT STD;
      privKeyFile :=      '/var/lib/HPCCSystems/myesp/test.key';
      pubKeyFile :=       '/var/lib/HPCCSystems/myesp/test.key.pub';
      MyPKEModule := STD.Crypto.PublicKeyEncryption('SHA256', pubKeyFile, privKeyFile,'');
      DATA signature := MyPKEModule.Sign((DATA)'The quick brown fox');
      signature; //this output for testing only
      

        Attachments

          Activity

            People

            • Assignee:
              russwhitehead Russ Whitehead
              Reporter:
              jamesdefabia Jim DeFabia
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: