theupdateframework/tuf — pull request #197 by vladimir-v-diaz (2014-04-03 17:23:51+00:00)
Title: Add error message for clients that lack a required crypto library.

Trishank reported:
Better error message when updater expects pycrypto?
NoWorkingMirrorError
TUF could not initialize due to an error: No working mirror was found:
'module' object has no attribute 'pycrypto_keys'

Fix:
TUF's crypto dependencies was recently changed: ED25519 signatures supported by default, and require PyCrypto or tuf[tools] to verify RSASSA-PSS signatures.
The error returned for clients that tried to verify rsassa-pss signatures without the required library was bad. Error message returned now . . .

$ basic_client.py --repo http://localhost:8001
Error: No working mirror was found:
localhost:8001: Metadata downloaded from the remote repository specified an RSA signature. Verifying RSA signatures requires PyCrypto.
$ pip install PyCrypto, or pip install tuf[tools].