diff --git a/config/install/raven.settings.yml b/config/install/raven.settings.yml
index 5d46053..074c97c 100644
--- a/config/install/raven.settings.yml
+++ b/config/install/raven.settings.yml
@@ -9,3 +9,5 @@ timeout: 2
 trace: false
 javascript_error_handler: false
 public_dsn: ''
+ssl: 'verify_ssl'
+ca_cert: ''
diff --git a/config/schema/raven.schema.yml b/config/schema/raven.schema.yml
index 2a4d239..635971e 100644
--- a/config/schema/raven.schema.yml
+++ b/config/schema/raven.schema.yml
@@ -60,3 +60,9 @@ raven.settings:
     public_dsn:
       type: string
       label: 'Sentry public DSN'
+    ssl:
+      type: string
+      label: 'Options to Verify SSL'
+    ca_cert:
+      type: string
+      label: 'Path to the CA certificate file of the Sentry server specified in the DSN'
diff --git a/src/Form/RavenConfigForm.php b/src/Form/RavenConfigForm.php
index 0f3780e..3b6f501 100644
--- a/src/Form/RavenConfigForm.php
+++ b/src/Form/RavenConfigForm.php
@@ -103,6 +103,30 @@ class RavenConfigForm extends ConfigFormBase {
       '#default_value' => $this->config('raven.settings')->get('trace'),
       '#description'   => $this->t('Check to enable reflection tracing (function calling arguments) in stacktraces. Warning: This setting allows sensitive data to be logged by Sentry!'),
     ];
+    $form['ssl'] = [
+      '#type'           => 'radios',
+      '#title'          => $this->t('SSL Verification'),
+      '#default_value'  => $this->config('raven.settings')->get('ssl'),
+      '#options'        => [
+        'verify_ssl'    => $this->t('Verify SSL'),
+        'ca_cert'       => $this->t('Verify against a CA certificate'),
+        'no_verify_ssl' => $this->t("Don't verify SSL (not recommended)"),
+      ],
+    ];
+    $form['ca_cert'] = [
+      '#type'           => 'textfield',
+      '#title'          => $this->t('Path to CA certificate'),
+      '#default_value'  => $this->config('raven.settings')->get('ca_cert'),
+      '#description'    => $this->t('Path to the CA certificate file of the Sentry server specified in the DSN.'),
+
+      // Only visible when 'ssl' set to ca_cert.
+      '#states'         => [
+        'visible'       => [
+          ':input[name=ssl]' => ['value' => 'ca_cert'],
+        ],
+      ],
+    ];
+
     return parent::buildForm($form, $form_state);
   }
 
@@ -120,6 +144,8 @@ class RavenConfigForm extends ConfigFormBase {
       ->set('stack', $form_state->getValue('stack'))
       ->set('timeout', $form_state->getValue('timeout'))
       ->set('trace', $form_state->getValue('trace'))
+      ->set('ssl', $form_state->getValue('ssl'))
+      ->set('ca_cert', $form_state->getValue('ca_cert'))
       ->set('javascript_error_handler', $form_state->getValue('javascript_error_handler'))
       ->set('public_dsn', $form_state->getValue('public_dsn'))
       ->save();
diff --git a/src/Logger/Raven.php b/src/Logger/Raven.php
index a5cf54c..603c3dd 100644
--- a/src/Logger/Raven.php
+++ b/src/Logger/Raven.php
@@ -77,7 +77,20 @@ class Raven implements LoggerInterface {
       'processors' => ['Drupal\raven\Processor\SanitizeDataProcessor'],
       'timeout' => $this->config->get('timeout'),
       'trace' => $this->config->get('trace'),
+      'verify_ssl' => TRUE,
     ];
+
+    $ssl = $this->config->get('ssl');
+    // Verify against a CA certificate.
+    if ($ssl == 'ca_cert') {
+      $ca_cert = $this->config->get('ca_cert');
+      $options['ca_cert'] = \Drupal::service('file_system')->realpath($ca_cert);
+    }
+    // Don't verify at all.
+    elseif ($ssl == 'no_verify_ssl') {
+      $options['verify_ssl'] = FALSE;
+    }
+
     if (!empty($this->config->get('release'))) {
       $options['release'] = $this->config->get('release');
     }
