diff --git a/config/install/raven.settings.yml b/config/install/raven.settings.yml
index cdf21ba..dcea4f5 100644
--- a/config/install/raven.settings.yml
+++ b/config/install/raven.settings.yml
@@ -7,3 +7,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 905d4b0..009f060 100644
--- a/config/schema/raven.schema.yml
+++ b/config/schema/raven.schema.yml
@@ -54,3 +54,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 99a4f9c..60067c7 100644
--- a/src/Form/RavenConfigForm.php
+++ b/src/Form/RavenConfigForm.php
@@ -91,6 +91,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);
   }

@@ -106,6 +130,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 c4135d0..3b663ac 100644
--- a/src/Logger/Raven.php
+++ b/src/Logger/Raven.php
@@ -78,7 +78,20 @@ class Raven implements LoggerInterface {
       ],
       '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;
+    }
+
     $this->moduleHandler->alter('raven_options', $options);
     try {
       $this->client = new Raven_Client($options);
