2
我想验证下载文件的签名和证书使用pyopenssl,但文档不清楚,谷歌没有帮助。Pyopenssl验证文件签名
我在用户的机器上有一个根CA证书,现在当用户下载文件时,我会发送证书和签名。首先,我需要的机器上根CA验证证书,然后我需要的文件
验证签名OpenSSL中我可以使用下面的验证CA证书
openssl verify -CAfile <root_pem> <cert_pem>
并按照验证文件
openssl dgst <algo> -verify <cert_pub_key> -signature <signature> <file>
我在找等同方式使用Python做到这一点,最好pyopenssl