On Wed, May 02, 2007, [EMAIL PROTECTED] wrote: > (openssl-dev readers ignore, crosspost...) > > Hey all, > > Im tearing my hair out here with what is probably a stupid problem. > I'm new to openssl , rsa, etc... , so bear with me please:) > > Im doing the server-side things of an authorization system. > So, i need to sign user-submited challenge files with a private key. > Im trying to do this with PHP (on apache, with openssl). > The private key was generated with 'cryptopp' . It is hex-encoded and in DER > format. > Heres the bit of code that generates the key using cryptopp: > > RSAES_OAEP_SHA_Decryptor priv(randPool, keylen); > HexEncoder privFile(new StringSink(privStr)); > priv.DEREncode(privFile); > privFile.MessageEnd(); > > the private key looks *something* like this, just much longer (no need to > delete, this is not a real key here): > > 064DA77A8E7CFA65EDCE641 > > just one long string of hex values. >
I'd suggest you generate a sample key and post that. If however the first two characters aren't "30" (ASN1 SEQUENCE tag) you'll have no luck trying to get the OpenSSL command line to process it. 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]