throw exception if caught SSL ceritification error