diff --git a/hooks/templates/inc_projects_config.php.erb b/hooks/templates/inc_projects_config.php.erb
index 20a8de09be4b45ca0fe193f11e729411aac5eae5..01b812fa355a4f68531043889bbb0b40fa23102f 100644
--- a/hooks/templates/inc_projects_config.php.erb
+++ b/hooks/templates/inc_projects_config.php.erb
@@ -78,6 +78,7 @@ $aConfig = array(
         'api'=>'<%= @replace["foreman-url"] %>', // with ending "/"
         'user'=>'<%= @replace["foreman-user"] %>',
         'password'=>'<%= @replace["foreman-password"] %>',
+        'verify-ssl'=><%= @replace["foreman-verify-ssl"] %>,
         // 'varname-replace'=>'ci-replacement',
     ),
     // where to store project data
diff --git a/public_html/deployment/classes/foremanapi.class.php b/public_html/deployment/classes/foremanapi.class.php
index 2c2e3e0878f2e38ab52f9d8f19fc4db725e8eb15..afde157b5650404758064736ce6ab2d625275c1e 100644
--- a/public_html/deployment/classes/foremanapi.class.php
+++ b/public_html/deployment/classes/foremanapi.class.php
@@ -246,7 +246,12 @@ class ForemanApi {
         }
         curl_setopt($ch, CURLOPT_HEADER, 1);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
+        
+        if (array_key_exists('verify-ssl', $this->_aCfg) && !$this->_aCfg['verify-ssl']){
+            $this->log(__FUNCTION__ . " WARNING: SSL verifify was disabled in the config.", 'warning');
+            curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
+            curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
+        }
         curl_setopt($ch, CURLOPT_TIMEOUT, $iTimeout);
         curl_setopt($ch, CURLOPT_USERAGENT, 'IML Deployment GUI :: ' . __CLASS__);
         if ($sApiUser){