Hi,

I want to send data from my machine to another one and the remote machine
should be able to decrypt and make sense of the data only if it has the
correct credentials, like a key file.

I'm a new to openssl and public key systems. From what I understand from the
docs, I should be able to generate a key pair, 1 public and another private.
Now, I've created a private RSA key and extracted the public key. Next, I
signed the data using the private key and sent it to the remote machine. I
also copied the exported public key to the remote machine too. The remote
machine can verify the data and I can see the data I originally signed.

However, I've got 2 doubts:

1) Am I doing it right? Is the signed data secure and not accessible to
anyone without the public/private key? Of course, hackers can always break
it, I understand that. But, otherwise I'm following the right process/idiom?
2) If the data size is bigger, I get the error "data greater than mod
len:rsa_eay.c:660:". How do I deal with this case?

Thanks for the great s/w and thanks in advance for any help :)

cheers,
skar.

Reply via email to