I want to be like you!

Exactly, the file is in PKCS #8 format, that command worked perfectly,
I entered my password and worked well.

Now I want to sign a file. You said that I should use the the -sign
option in the dgst command, right? Since I also need a md5 hash of my
string I tried:

openssl dgst -md5 -sign key.pem -out signed originalFile.txt

It is supposed that I should sign using the RSA algorithm, so not sure
where do I tell that to openssl.


Roberto



On 8/31/05, Dr. Stephen Henson <[EMAIL PROTECTED]> wrote:
> On Tue, Aug 30, 2005, Roberto Arias Alegria wrote:
> 
> > Hello Stephen,
> >
> > Thanks for helping me, I'm new using open-ssl I really appreciate your 
> > support.
> >
> > Then I used  "openssl asn1parse -inform DER -in file.key" and I got this:
> >
> >     0:d=0  hl=4 l= 710 cons: SEQUENCE
> >     4:d=1  hl=2 l=  64 cons: SEQUENCE
> >     6:d=2  hl=2 l=   9 prim: OBJECT            :PBES2
> >    17:d=2  hl=2 l=  51 cons: SEQUENCE
> >    19:d=3  hl=2 l=  27 cons: SEQUENCE
> >    21:d=4  hl=2 l=   9 prim: OBJECT            :PBKDF2
> >    32:d=4  hl=2 l=  14 cons: SEQUENCE
> >    34:d=5  hl=2 l=   8 prim: OCTET STRING
> >    44:d=5  hl=2 l=   2 prim: INTEGER           :0800
> >    48:d=3  hl=2 l=  20 cons: SEQUENCE
> >    50:d=4  hl=2 l=   8 prim: OBJECT            :des-ede3-cbc
> >    60:d=4  hl=2 l=   8 prim: OCTET STRING
> >    70:d=1  hl=4 l= 640 prim: OCTET STRING
> >
> > Hope you can help,
> >
> 
> That looks like PKCS#8 format. Try:
> 
> openssl pkcs8 -inform DER -in file.key -out file.pem
> 
> Steve.
> --
> Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
> OpenSSL project core developer and freelance consultant.
> Funding needed! Details on homepage.
> Homepage: http://www.drh-consultancy.demon.co.uk
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to