Found my answer in the SDK code:
I am using ITeamRepositoryService to create repository connection. In the documentation of this class it mentions extension com.ibm.team.repository.client.certificateHandler which does what I need.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means.
Learn more here.