• Thomas Gambier's avatar
    fix for old version of SSL · f47b10af
    Thomas Gambier authored
    "context.set_ciphers('DEFAULT:@SECLEVEL=1')" was introduced in
    ab3b2c3b but for very old SSL we can have the
    follwoing error:
    
    Traceback (most recent call last):
      File "/usr/local/bin/networkcache-upload", line 9, in <module>
        load_entry_point('slapos.libnetworkcache==0.19', 'console_scripts', 'networkcache-upload')()
      File "/usr/local/lib/python2.7/dist-packages/slapos/libnetworkcache.py", line 489, in cmd_upload
        **dict(x.split('=', 1) for x in args.meta))
      File "/usr/local/lib/python2.7/dist-packages/slapos/libnetworkcache.py", line 341, in upload
        'Content-Type': 'application/octet-stream'})
      File "/usr/local/lib/python2.7/dist-packages/slapos/libnetworkcache.py", line 264, in _request
        context.set_ciphers('DEFAULT:@SECLEVEL=1') # XXX
    ssl.SSLError: ('No cipher can be selected.',)
    
    /reviewed-on !3
    f47b10af
libnetworkcache.py 17 KB