Fixed the usage of self signed certificates