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

TSAClient with username+password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.23
    • 2.0.24, 3.0.0 PDFBox
    • Signing
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: