Closed nicholasamorim closed 5 years ago
I've actually figured this out.
The only thing I could think of is that when using openssl the -cert
option is used, thus changing the output as it includes the certificate. But I didn't know that the timestamper class accepted such parameter, digging into the code I found it: include_tsa_certificate
.
After setting this to true, it work as expected!
Again, thanks for this amazing library!
Great, happy that the library is helpful for you.
(Most credits go to the original authors :-) )
Also happy to merge PR's if there is anything you can add to make this easier / more useful or more documented.
@trbs I actually have a fork with Tornado support (and plan to test/add AioHttp support).
I'd love to merge it here, but the changes are a bit fundamental, if you know what I mean. Hard to avoid async-creep if not using threads.
If you're interested, you could look at my changes and propose a course of action.
@nicholasamorim sorry for the way to long overdue reply.
It would be awesome to merge your changes into rfc3161ng
, but restricting the package to 3.7+ is giving me mixed feelings ;-)
Guessing the even more ideal solution would be to merge everything back into the rfc3161
package since it's also a bit of a shame that we now get a bunch of different packages doing the same thing in different stages of activeness...
First of all: thanks for this project, @trbs.
Here's my problem, which to be honest I'm not even sure if it's related to this library.
I need to be able to verify the signatures using OpenSSL. However, I can't verify the
tsr
that I save using the library without using-unstrusted
.But if I manually create the
tsq
and sign it usingcurl
I can verify it without using-untrusted
. Why is that?This works just fine. But if I perform the request through this library:
Then it only works if the verify command has
-untrusted
:If I don't pass untrusted, this is what happens:
The
tsq
used in both cases is the same generated withopenssl ts -query -data data.json -no_nonce -sha256 -cert -out file.tsq
The size of the
tsr
is very different as well when using curl and when using the library: curl's tsr has 6k and the library's tsr has 709 bytes.My TSA is uts-server, if that matters.
Am I doing something wrong?