Python中的时间戳服务器RFC3161响应令牌生成 [英] Timestamp server rfc3161 response token generation in Python

查看:280
本文介绍了Python中的时间戳服务器RFC3161响应令牌生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Twisted在python上实现tsa服务器.当前,我正在使用openssl二进制文件生成响应,但是这对我来说似乎很丑陋,这就是为什么我试图弄清楚如何使用m2crypto生成响应令牌的原因.

I'm trying to implement tsa server on python using twisted. Currently I'm using openssl binary to generate response, but this seems ugly to me, that's why I'm trying to figure out how to make response token with m2crypto.

提前感谢您的帮助!

马里斯.

已编辑

如何使用m2crypto实现?:

how to achieve with m2crypto?:

openssl ts -reply -section tsa_config1 -queryfile query.tsq -out response.tsr

推荐答案

M2Crypto尚未包装这些openssl,因此您不能将M2Crypto用于openssl命令行客户端.

M2Crypto does not yet wrap those pieces of openssl, so you can't use M2Crypto for what you are using the openssl command line client for.

这篇关于Python中的时间戳服务器RFC3161响应令牌生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆