Skip to content

Conversation

@phil-levy
Copy link
Contributor

The base problem was that cryptodome's RSA.key.exportKey produces bytes, which in py3 have to be decoded to produce a string. So first we decode them (using the 'ascii' decoder, because it's PEM data), and then (for py2 compatibility) we coerce the decode result to a string.

  • Also fixed the example umapi config file to have the correct name for secure private keys (secure_priv_key_data_key), which was reported in the same bug.
  • Also fixed the doc sources (in English only, because the translations hadn't yet picked up this section) not to include the same buggy example as the config file.
  • Also fixed the handling of AssertionError not to expect the exception to have a message field.
  • Also updated the version number and release notes in case we want to produce a release with only this fix.

The base problem was that cryptodome's RSA.key.exportKey produces bytes, which in py3 have to be decoded to produce a string.  So first we decode them (using the 'ascii' decoder, because it's PEM data), and then (for py2 compatibility) we coerce the decode result to a string.

* Also fixed the example umapi config file to have the correct name for secure private keys (`secure_priv_key_data_key`), which was reported in the same bug.
* Also fixed the doc sources (in English only, because the translations hadn't yet picked up this section) not to include the same buggy example as the config file.
* Also fixed the handling of AssertionError not to expect the exception to have a `message` field.
* Also updated the version number and release notes in case we want to produce a release with only this fix.
@phil-levy phil-levy merged commit 126c60e into v2_doc_update Aug 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants