diff --git a/raven.admin.inc b/raven.admin.inc
index bf5a67d..02cc69a 100644
--- a/raven.admin.inc
+++ b/raven.admin.inc
@@ -56,13 +56,47 @@ function raven_settings_form(array $form, array &$form_state) {
     '#default_value' => variable_get('raven_dsn', ''),
   );
 
-  $form['raven_settings']['raven_timeout'] = array(
+  $form['raven_settings']['raven_connection_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Connection settings'),
+    '#states' => array(
+      'disabled' => array(
+        ':input[name="raven_enabled"]' => array('unchecked' => TRUE),
+      ),
+    ),
+  );
+
+  $form['raven_settings']['raven_connection_settings']['raven_timeout'] = array(
     '#type' => 'textfield',
     '#title' => t('Timeout'),
     '#description' => t('Connection timeout in seconds.'),
     '#default_value' => variable_get('raven_timeout', 2),
   );
 
+  $form['raven_settings']['raven_connection_settings']['raven_ssl'] = array(
+    '#type' => 'radios',
+    '#title' => t('SSL Verification'),
+    '#default_value' => variable_get('raven_ssl', 'verify_ssl'),
+    '#options' => array(
+      'verify_ssl' => t('Verify SSL'),
+      'ca_cert' => t('Verify against a CA certificate'),
+      'no_verify_ssl' => t("Don't verify SSL (not recommended)"),
+    ),
+  );
+  $form['raven_settings']['raven_connection_settings']['raven_ssl_cert'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Path to CA certificate'),
+    '#default_value' => variable_get('raven_ssl_cert', ''),
+    '#description' => t('Path to the CA certificate file of the Sentry server specified in the DSN.'),
+
+    // Only visible when 'raven_ssl' set to ca_cert.
+    '#states' => array(
+      'visible' => array(
+        ':input[name=raven_ssl]' => array('value' => 'ca_cert'),
+      ),
+    ),
+  );
+
   $form['raven_settings']['raven_exception_handler'] = array(
     '#type' => 'checkbox',
     '#title' => t('Enable exception handler'),
diff --git a/raven.install b/raven.install
index f7b62d5..7de6b43 100644
--- a/raven.install
+++ b/raven.install
@@ -21,6 +21,8 @@ function raven_uninstall() {
   variable_del('raven_watchdog_handler');
   variable_del('raven_watchdog_levels');
   variable_del('raven_watchdog_page_not_found');
+  variable_del('raven_ssl');
+  variable_del('raven_ssl_cert');
 }
 
 /**
diff --git a/raven.module b/raven.module
index 88a5291..d6fbd7d 100644
--- a/raven.module
+++ b/raven.module
@@ -284,20 +284,50 @@ function _raven_get_client() {
     drupal_alter('raven_sanitize_fields', $fields);
     $fields_re = '/(' . implode('|', $fields) . ')/i';
 
+    $raven_ssl = variable_get('raven_ssl', 'verify_ssl');
+
+    // Verify against a CA certificate.
+    if ($raven_ssl == 'ca_cert') {
+      $ssl_config = array(
+        'verify_ssl' => TRUE,
+      );
+      $certpath = drupal_realpath(variable_get('raven_ssl_cert', FALSE));
+      if ($certpath) {
+        $ssl_config['ca_cert'] = $certpath;
+      }
+    }
+
+    // Don't verify at all.
+    elseif ($raven_ssl == 'no_verify_ssl') {
+      $ssl_config = array(
+        'verify_ssl' => FALSE,
+      );
+    }
+
+    // Default to verify SSL.
+    else {
+      $ssl_config = array(
+        'verify_ssl' => TRUE,
+      );
+    }
+
     // Instantiate a new client with a compatible DSN.
-    $client = new Raven_Client($dsn, array(
-      'timeout' => $timeout,
-      'auto_log_stacks' => $stack,
-      'trace' => $trace,
-      'tags' => array(
-        'php_version' => phpversion(),
-      ),
-      'processorOptions' => array(
-        'Raven_SanitizeDataProcessor' => array(
-          'fields_re' => $fields_re,
+    $client = new Raven_Client($dsn, array_merge(
+      array(
+        'timeout' => $timeout,
+        'auto_log_stacks' => $stack,
+        'trace' => $trace,
+        'tags' => array(
+          'php_version' => phpversion(),
+        ),
+        'processorOptions' => array(
+          'Raven_SanitizeDataProcessor' => array(
+            'fields_re' => $fields_re,
+          ),
         ),
+        'curl_method' => 'async',
       ),
-      'curl_method' => 'async',
+      $ssl_config
     ));
   }
 
