+1 vote
Hello there.

I’m currently working on the 'CSR' CTF challenge and would really appreciate some clarification.

Each time I try to collect my flag, I get this message: 'Now we need the sha256 signature of "5970554". Provide the resulting signature encoded in base64.' The number changes every time, and I’m not sure what it refers to or how to generate the correct response. Could you maybe provide some guidance or useful tips?

Thanks in Advance.
in Exercises by
edit history

1 Answer

+1 vote
Best answer

You have to do what the message says. You create a signature over the given number with your private key and encode it in base64.

To create the signature I used the python package called cryptography.

https://cryptography.io/en/latest/

by
edit history
0
Some additional Info: Your certificate contains a public key and by signing some message (the number) with the corresponding private key, you prove that it is your certificate.
0
Totally forgot: Thank you very much for the answer it pretty much helped me