Bypassing urlfetch SSL certificate validation

1,185 views
Skip to first unread message

Justin

unread,
Jun 4, 2011, 2:22:08 PM6/4/11
to Google App Engine
Get the following when trying to download from a site with a bad
certificate

File "/home/jhw/packages/google_appengine-1.5.0/google/appengine/api/
urlfetch.py", line 367, in _get_fetch_result
raise SSLCertificateError(str(err))
google.appengine.api.urlfetch_errors.SSLCertificateError:
ApplicationError: 6 (1, '_ssl.c:491: error:14090086:SSL
routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed')

Is there anyway to bypass this / force urlfetch to do an 'insecure'
connection ?

Thanks!



Robert Kluin

unread,
Jun 5, 2011, 12:12:25 AM6/5/11
to google-a...@googlegroups.com
Hi Justin,
Have you tried explicitly setting the validate_certificate parameter
to False in your fetch call?

http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html


Robert

> --
> You received this message because you are subscribed to the Google Groups "Google App Engine" group.
> To post to this group, send email to google-a...@googlegroups.com.
> To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
>
>

Justin

unread,
Jun 5, 2011, 2:20:15 AM6/5/11
to Google App Engine
Go it - RTFM :-( - thanks

On Jun 5, 5:12 am, Robert Kluin <robert.kl...@gmail.com> wrote:
> Hi Justin,
>   Have you tried explicitly setting the validate_certificate parameter
> to False in your fetch call?
>
>    http://code.google.com/appengine/docs/python/urlfetch/fetchfunction.html
>
> Robert
>
Reply all
Reply to author
Forward
0 new messages