Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.23
-
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.)