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

Scep not working with Cryptlib

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 3.1.2
    • Fix Version/s: EJBCA 3.1.3
    • Component/s: PKI core
    • Labels:
      None

      Description

      The scep spec says that the response should be a degenerate pkcs-signed-data, containing no message and no SignerInfo. Cryptlib does not work with the current impelementation that uses a dummy message and a SignerInfo block.

      Using the next verison of BC (1.30) and changing lines 208- in ScepResponseMessage to:
      // Create the signed CMS message to be contained inside the envelope
      //msg = new CMSProcessableByteArray("PrimeKey".getBytes());
      CMSSignedDataGenerator gen = new CMSSignedDataGenerator();
      //gen.addSigner(signKey, signCert, CMSSignedDataGenerator.DIGEST_SHA1);
      gen.addCertificatesAndCRLs(certs);
      s = gen.generate(null, false, "BC");

      Fixes the issue. The solution has been tested with Cryptlib, OpenScep and Cisco VPN client. Perhaps it even fixes cisco PIX?

        Attachments

          Activity

            People

            Assignee:
            tomas Tomas Gustavsson
            Reporter:
            tomas Tomas Gustavsson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: