0

I'm using Python 2.7.9 on Mac os x yosemite.

I'm using the following module to post updates to our Magento install via their API. Github Magento Python XMLRPC

It works fine using a normal HTTP connection to my test server, however, when I try to migrate to our live server, this uses HTTPS exclusively. We have a SHA256 SSL EV certificate.

The connection string I'm using is:

from magento import MagentoAPI
magento = MagentoAPI("www.mywebsite.co.uk", 80, "username", "api_key", "/api/xmlrpc", True)

The error I get is:

SSLError: [SSL: UNKNOWN_PROTOCOL] unknown protocol (_ssl.c:581)

I've tried adjusting the port to 443, and also setting the protocol to HTTPS

However, fails all the time.

I'm afraid i'm new to python so this one has me stuck.

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Alex Hellier
  • 435
  • 1
  • 7
  • 15

0 Answers0