Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5187

TSAClient with username+password

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.23
    • Fix Version/s: 2.0.24, 3.0.0 PDFBox
    • Component/s: Signing
    • Labels:
      None

      Description

      TSAClient used for signing document has authentication to TSA server implemented "weirdly". There is:

      connection.setRequestProperty(username, password);

      ... and it should be:

      connection.setRequestProperty("Authorization", "Basic " + new String(Base64.getEncoder().encode((username + ":" + password).getBytes(StandardCharsets.UTF_8))));

      (in case of basic authentication ofc.)

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              mi0 Miro
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: