Python rfc3161 temporary server response token generation

I am trying to implement a tsa server in python using twisted. I am currently using openssl binary to generate a response, but it seems ugly to me, so I'm trying to figure out how to make a response token with m2crypto.

Thanks in advance for your help!

Maris.

Edition:

How to reach with m2crypto ?:

openssl ts -reply -section tsa_config1 -queryfile query.tsq -out response.tsr
+3
source share
3 answers

M2Crypto does not yet wrap these parts of openssl, so you cannot use M2Crypto for what you use the openssl command-line client for.

+1
source

PyASN1, , RFC3161 Python , Perl.

0

You can simply use the rfc3162ng module .

If you are interested in deeply understanding what is hidden under the hood, I suggest reading this useful post written by Etienne Boucher.

0
source

Source: https://habr.com/ru/post/1746003/


All Articles