Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature and TSTInfo not available from ParseResponse() #10

Open
jpgoldberg opened this issue Sep 27, 2021 · 2 comments
Open

Signature and TSTInfo not available from ParseResponse() #10

jpgoldberg opened this issue Sep 27, 2021 · 2 comments

Comments

@jpgoldberg
Copy link

I strongly suspect that I am "using it wrong", but the structure returned by ParseResponse does not include the signature and may be missing other information which might be necessary to verifying a response.

@vanbroup
Copy link
Member

The Parse function called by ParseResponse does verify the signature when a certificate is included. If the certificate is not included in the response it can currently not be validated.

if err = p7.Verify(); err != nil {

We might need to create a new function to validate with an external certificate.

What is your use case?

@jpgoldberg
Copy link
Author

Mostly I wanted to create a human readable version of the TSR. I'm happy to leave verification to OpenSSL or some other tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants