takeshixx / deen

Generic data DEcoding/ENcoding application built with PyQt5.
Apache License 2.0
46 stars 7 forks source link

deen Crashes on X509Certificate Formatting #18

Closed SvenTo closed 7 years ago

SvenTo commented 7 years ago

Steps to reproduce:

screenshot_20170328_160156

Stack Trace:

$ deen
  OpenType support missing for script 9
[x509.py:27 -          certificate() ] Invalid certificate encoding
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/deen/widgets/encoder.py", line 326, in <lambda>
    self.misc_combo.currentIndexChanged.connect(lambda: self.action(self.misc_combo))
  File "/usr/lib/python3.6/site-packages/deen/widgets/encoder.py", line 509, in action
    self.next.content = transformer.decode()
  File "/usr/lib/python3.6/site-packages/deen/widgets/encoder.py", line 82, in content
    assert isinstance(data, (bytearray, bytes))
AssertionError
[1]    18240 abort (core dumped)  deen
takeshixx commented 7 years ago

Should be fixed in 7994789f6f9d1c90cc037805b2359c824e306ab7.

takeshixx commented 7 years ago

X509 formatting should now also support DER-encoded (non-Base64-encoded) certificates (299b3ad73d4e809f071ecdb3e306b13b3a04c75d).