openssl返回apk中rsa证书的信息:
openssl pkcs7 -inform DER -in CERT.RSA -noout -print_certs -text
Subject和Issuer中,如果包含中文,会以编码的形式输出来:

在python中获取到这些值str格式的,得到的字符串的16进制数是以字符串的形式输出,都变成了原始字符串,就和
-
r'''\xE5\xA5\x87\xE8\x89\xBA'''
是一样的,如果想转成中文形式,可以用以下方式实现:
-
import binascii
-
print(binascii.a2b_hex("E5A587E889BA"))
输出:
奇艺
阅读(2023) | 评论(0) | 转发(0) |