Fix TLS chain building
What does this MR do?
Fixes the problem with TLS certificates chain generation for Git, that was introduced with our changes in 12.4.0.
Why was this MR needed?
Please check #4805 (closed) for context.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master- branch was rebased
What are the relevant issue numbers?
Closes #4805 (closed)