Google Answers Logo
View Question
 
Q: How to sign a string with a RSA private key? ( No Answer,   0 Comments )
Question  
Subject: How to sign a string with a RSA private key?
Category: Computers > Programming
Asked by: ivanv-ga
List Price: $40.00
Posted: 28 Oct 2005 14:32 PDT
Expires: 29 Oct 2005 11:27 PDT
Question ID: 586182
I have a sample private key uploaded at omnipotente.com/private.key,
and the public key at omnipotente.com/public.cer

The password for the private key is Empresa1.

I need to use a private key in the same format as the one I uploaded
to sign some data.

So far I've tried OpenSSL (cygwin), PHP's OpenSSL, Ruby's RSA lib, and
even CryptoSys PKI Toolkit. None can decrypt the damn key (or I'm not
using them properly).

Help me find a library that can use my key to sign data. The prefered
solutions are listed in order:

1. Ruby
2. PHP
3. VB.NET/C#
4. Python/Perl
5. ActiveX (COM)/DLL library
6. Command line utility
7. *You* create a Java program I can use from the command line, or
provide detailed instructions on how to do it.
x. Anything else you can suggest...

Open source libraries are prefered, commercial ones will be considered
only if no open source is available, and not too expensive. If you
give me a commercial solution, comment first so I decide if it's a
valid answer.

Also, the platform I'll use it can be either Windows or Linux, so a
solution that works in both environments is prefered, although this is
not a requirement.

If you don't provide me with a straight valid answer but you do help
me get this done, I'll open another question with less value for you
to take.

Additional info
------------------
The government (Mexico) gave me the key, and they have a document specifying
how to sign data. Unfortunately, they don't provide any info on what
to do it with, other than mention the algorithms:

RSAPrivateEncrypt and RSAPublicDecrypt.

They go on to cite several web sites:

www.rsa.com/rsalabs/faq/3-6-6.html
www.ietf.org/rfc/rfc1321.txt
www.dcs.uky.edu/~calvert/old-classes/645/assign4.ps
web.mit.edu/crypto/arch/sgi_62/sbin/sshd

They also mention RSAwithMD5Encryption, but that's not really
necessary because an MD5 is easily generated in almost any language.

Thanks!
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy