Certificate verify failed (self signed certificate)

Hi All,

I have got sentry secured by tls and accessible on my local setup at https://my-sentry.example.com/, but now when a exception in my application is getting generated i see this message

Unable to record event with remote Sentry server (Raven::Error - SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate)):

I have also tried to update the DSN to 'https://6e0628f394b74c1ca3ec57350959b4b8:af3567c2278f4ee69847682c273faef8@my-sentry.example.com/2?timeout=5&verify_ssl=0'

but i still see the same error. The application which i connecting to sentry server is on my localhost and accessed by localhost:3000

any help would be great, Thanks.

Hi All,

for anyone facing similar issue for a Rails application, I managed to fix it by specifying the path to my certificate file in the raven configuration block

Raven.configure do |config|
  config.dsn = 'https://6e0628f394b74c1ca3ec57350959b4b8:af3567c2278f4ee69847682c273faef8@my-sentry.example.com/2?timeout=5'
  config.ssl_ca_file = '/onpremise/nginx/my-sentry.example.com.crt'
1 Like