> I have a text file, let us call it test.tx, which I need to send it
> through a secure mechanism to a remote site.
> I have already created a pair of public and private rsa key using
> openssl.
> I want to use openssl to generate a sha256 hash digest of the text file,
> i.e. test.tx --> test.hash.
> And encrypt the hash file with my private key i.e. test.hash -->
> test.sign.
> I believe this process is called signing the image (I am very new in
> this area).
>
> Any help greatly appreciated,
>
> --B

You are asking a really confusing question. You're like the guy who needs a
ride to the airport who asks if there's some kind of motorized conveyance,
open to the public, that operates a scheduled route towards a local air
transport facility. Just say "is there a bus to airport" or google "airport
bus".

If you just want to sign a file, use one of the tools designed to do exactly
that.
http://www.gnupg.org/

If you have any specific requirements, tell us what they are. I still have
no idea what you think an "image" is or why you think you want to "encrypt"
something to sign it.

Perhaps you are hung up on an unusual detail of RSA that signing and
ecrypting are mathematically the same operation? Crediting and debiting an
account are mathematically the same operation, but if you said you wanted to
"credit your account" for the amount of a check you wrote, you would just be
confusing everyone.

Or do you mean "executable" by image? Signing executables varies by
operating system. For Windows, there's a signing tool specifically for
images.

I hope this doesn't come across as angry or snarky. I know mood is a hard
thing to convey in an email.

DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to