THRIFT-2568: Implemented possibility to use own certificate handler