Hi Selim,

Unfortunately, no, not in any reasonable way that we can suggest through
code. Python enforces SSL cert validation, and you’d have to do some things
for this particular call to turn that off, modifying the Python file itself.

There are ways to tell Python that particular self-signed certs are trusted
on a global level, but how this works can vary. Usually it involves adding
the cert to a system-wide trust store, which on Linux will  generally be in
/usr/local/share/ca-certificates. That *might* work.

Christian


On Tue, Oct 30, 2018 at 17:49 'Selim Tuvi' via Review Board Community <
[email protected]> wrote:

> Hi, we are testing integration between Review Board and Rocket Chat.
> Neither web site has a valid certificate right now. When the webhook is
> triggered from RB to RC we get the following error in RB logs:
>
> Traceback (most recent call last):
>   File
> "/opt/venv/local/lib/python2.7/site-packages/reviewboard/notifications/webhooks.py",
> line 304, in dispatch_webhook_event
>     opener.open(Request(url.encode('utf-8'), body, headers))
>   File "/usr/lib/python2.7/urllib2.py", line 429, in open
>     response = self._open(req, data)
>   File "/usr/lib/python2.7/urllib2.py", line 447, in _open
>     '_open', req)
>   File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
>     result = func(*args)
>   File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open
>     context=self._context)
>   File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open
>     raise URLError(err)
> URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate
> verify failed (_ssl.c:726)>
>
> Is there a way to temporarily disable ssl verification when posting the
> webhook?
>
> Thanks
> -Selim
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
-- 
-- 
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to