Problem with CIELO certificate using Django

-2

I'm trying to implement a transparent checkout for my online store using CIELO to do so.

data: Django 1.9.5 Python 2.7.6 Ubuntu 14.04 nginx uwgsi digital ocean

link api python sky: link

I installed the certificates using the cielo.sh script available at this link: link

When I run any example api code I get the following error:

  

Exception Type: SSLError   Exception Value: hostname 'apisandbox.cieloecommerce.cielo.com.br' does not match either of '* .braspag.com.br', 'braspag.com.br'

Can anyone help me? Would you suggest another API for payment solutions?

    
asked by anonymous 27.01.2017 / 02:32

1 answer

0

This is a problem with the SSL certificate.

You should verify that the SSL certificate has been generated for the domain you are using.

Another way is to bypass the certificate check - but make it clear that this leaves the system vulnerable to certain types of attacks man-in-the-middle .

    
29.01.2017 / 18:24