J
J
jajabin2021-06-24 15:57:44
OpenSSL
jajabin, 2021-06-24 15:57:44

Is it possible in openssl to store the signature in a signed file?

There is a file.txt , when it is signed with a private key (for example, rsa or any other), is it possible to save the signature in the same file.txt ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-06-24
@jajabin

I'm afraid this is problematic, because after adding the signature, the file will change, and the signature will become invalid. And even if we bite out the signature before checking it (and not the fact that we will immediately understand where the signature is!), then little things like an extra line feed can still prevent us from restoring the original look of the file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question