Add ability to disable SSL certificate check

This pull request consists of two types of commits.
The first one added the disable SSL support. In the second commit, an option to enable or disable the SSL certificate check is provided.