If self-signed certificates are used for internal endpoints
the current implementation will fail as there is no option
to turn off the certificate validation.
This patch implements a new variable to do so.
Change-Id: I64a80716a8636ab978071e9e6c7aaa19962547ec