Added hostname and port to callback function for SSL certification verification.