You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On python 2.7.13 (debian), TLS v1 is not supported by default. This is reasonable, but the Patelco credit union (and possibly other banks) does not support any later version.
Is it possible to extend ofxclient in some way to support TLSv1? Perhaps by supporting a per-institution configuration?
I was able to patch in support using the following, but there is probably a better way:
index dc2cbf9..c7daf36 100644
--- a/ofxclient/client.py+++ b/ofxclient/client.py@@ -15,6 +15,7 @@ except ImportError:
# python 2
from urllib import splittype, splithost
import uuid
+import ssl
DEFAULT_APP_ID = 'QWIN'
DEFAULT_APP_VERSION = '2500'
@@ -132,7 +133,10 @@ class Client:
logging.debug(query)
garbage, path = splittype(i.url)
host, selector = splithost(path)
- h = HTTPSConnection(host, timeout=60)+ if host == 'ofx.patelco.org':+ h = HTTPSConnection(host, timeout=60, context=ssl.SSLContext(ssl.PROTOCOL_TLSv1))+ else:+ h = HTTPSConnection(host, timeout=60)
# Discover requires a particular ordering of headers, so send the
# request step by step.
h.putrequest('POST', selector, skip_host=True,
The text was updated successfully, but these errors were encountered:
On python 2.7.13 (debian), TLS v1 is not supported by default. This is reasonable, but the Patelco credit union (and possibly other banks) does not support any later version.
Is it possible to extend ofxclient in some way to support TLSv1? Perhaps by supporting a per-institution configuration?
I was able to patch in support using the following, but there is probably a better way:
The text was updated successfully, but these errors were encountered: