correctly decode string in view cert dialog
This commit is contained in:
parent
902c3d59c6
commit
41bd11fdee
1 changed files with 4 additions and 3 deletions
|
@ -5471,9 +5471,10 @@ SHA256 Fingerprint: %(sha256)s
|
||||||
'sn': cert.get_serial_number(), 'icn': issuer.commonName,
|
'sn': cert.get_serial_number(), 'icn': issuer.commonName,
|
||||||
'iorg': issuer.organizationName,
|
'iorg': issuer.organizationName,
|
||||||
'iou': issuer.organizationalUnitName,
|
'iou': issuer.organizationalUnitName,
|
||||||
'io': cert.get_notBefore(), 'eo': cert.get_notAfter(),
|
'io': cert.get_notBefore().decode('utf-8'),
|
||||||
'sha1': cert.digest('sha1'),
|
'eo': cert.get_notAfter().decode('utf-8'),
|
||||||
'sha256': cert.digest('sha256')})
|
'sha1': cert.digest('sha1').decode('utf-8'),
|
||||||
|
'sha256': cert.digest('sha256').decode('utf-8')})
|
||||||
pix = gtkgui_helpers.get_icon_pixmap('application-certificate', size=32,
|
pix = gtkgui_helpers.get_icon_pixmap('application-certificate', size=32,
|
||||||
quiet=True)
|
quiet=True)
|
||||||
if pix:
|
if pix:
|
||||||
|
|
Loading…
Add table
Reference in a new issue