PySmug and secure upload problem
zRck
Registered Users Posts: 2 Beginner grinner
I was recently starting to play with the great PySmug 0.5 library and trying to upload a photo into an existing album, but got problems with the underlying pycurl not able to communicate against https://api.smugmug.com with the following exception:
File "/opt/tools/pysmug-0.5/pysmug/__init__.py", line 67, in mg
return fn(*args, **kwargs)
File "/opt/tools/pysmug-0.5/pysmug/smugmug.py", line 250, in images_upload
return self._perform(c)
File "/opt/tools/pysmug-0.5/pysmug/smugmug.py", line 258, in _perform
c.perform()
pycurl.error: (52, 'GnuTLS recv error (-9): A TLS packet with unexpected length was received.')
Running on a Debian 5.0 (Lenny) Linux server.
To verify the certificates I did execute:
gnutls-cli -d 4711 --x509cafile /usr/share/ca-certificates/mozilla/ValiCert_Class_2_VA.crt api.smugmug.com --priority NORMAL:%COMPAT
With the resulting certificate chain looking all fine and unexpired:
- Peer's certificate is trusted
- Version: TLS1.0
- Key Exchange: RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
(A similar problem reported here: http://article.gmane.org/gmane.network.gnutls.general/1579)
Is this a Debian specific issue, has someone found how to overcome this (without turning off security)?
Thanks,
Niko
File "/opt/tools/pysmug-0.5/pysmug/__init__.py", line 67, in mg
return fn(*args, **kwargs)
File "/opt/tools/pysmug-0.5/pysmug/smugmug.py", line 250, in images_upload
return self._perform(c)
File "/opt/tools/pysmug-0.5/pysmug/smugmug.py", line 258, in _perform
c.perform()
pycurl.error: (52, 'GnuTLS recv error (-9): A TLS packet with unexpected length was received.')
Running on a Debian 5.0 (Lenny) Linux server.
To verify the certificates I did execute:
gnutls-cli -d 4711 --x509cafile /usr/share/ca-certificates/mozilla/ValiCert_Class_2_VA.crt api.smugmug.com --priority NORMAL:%COMPAT
With the resulting certificate chain looking all fine and unexpired:
- Peer's certificate is trusted
- Version: TLS1.0
- Key Exchange: RSA
- Cipher: AES-128-CBC
- MAC: SHA1
- Compression: NULL
(A similar problem reported here: http://article.gmane.org/gmane.network.gnutls.general/1579)
Is this a Debian specific issue, has someone found how to overcome this (without turning off security)?
Thanks,
Niko
0