Implemented certificate validation against own set of Trusted CA .cer-s
Implemented some error checking