Problem with CIELO certificate using Django

Asked

Viewed 213 times

-1

I am trying to implement a transparent checkout for my online store using CIELO for such.

data: Django 1.9.5 Python 2.7.6 Ubuntu 14.04 Nginx uwgsi digital Ocean

link api python Cielo: https://github.com/DeveloperCielo/API-3.0-Python

I installed the certificates using the Cielo.sh script provided in this link: https://developercielo.github.io/Webservice-3.0/

When I run any sample code from the api I have the following error:

Exception Type: Sslerror Exception Value: hostname 'apisandbox.cieloecommerce.Cielo.com.br' doesn’t match either of '*.braspag.com.br', 'braspag.com.br'

Can anyone help me? Would indict another API for payment solutions?

1 answer

0

It is a problem with SSL certificate.

You should check if the SSL certificate was generated for the domain you are using.

Another way is to ignore the certificate check - but make it clear that this leaves the system vulnerable to certain types of attack man-in-the-Middle.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.