thanks for your answer.
xxd -r -p does work, and leaves me with a binary file.
i tried converting that to PEM, which leaves me with something indeed quite 
looking like a private key, when comparing to one i created with openssl, but 
still no luck. some weird chars in there:S now if only i knew where it funks 
up. The function i use to convert to pem is:

function der2pem($der_data) {
   $pem = chunk_split(base64_encode($der_data), 64, "\n");
   $pem = "-----BEGIN RSA PRIVATE KEY-----\n".$pem."-----END RSA PRIVATE 
KEY-----\n";
   
   return $pem;
}

thanks again
alois
-------- Original-Nachricht --------
Datum: Wed, 2 May 2007 17:44:14 -0700
Von: "David Schwartz" <[EMAIL PROTECTED]>
An: openssl-users@openssl.org
Betreff: RE: Private Key problem

> 
> > Ok, so i guess i do somehow have to convert that hex data into
> > binary, right?
> > i tried to do this with xxd, but i cant seem to find the option i
> > need. i pasted the output of -help for xxd below. I tried:
> > xxd -r infile outfile
> > but had to learn that a hexdump is not quite what my key is ..
> > i can do a binary digit dumb, and then -r that, but that doesnt
> > make sense, does it? :S
> > too many trees to see the forest for me here atm.
> > thanks alot for any hints + pointers,
> 
>       Your 'xxd' is no up to the task. Either get a better one or make a tool
> specifically to do this. (Either that or 'xxd -r -p' is just not
> documented
> for some reason.)
> 
>       DS
> 
> 
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to