Re: Problem with generating keys (lib not commandline)

2008-11-07 Thread Ger Hobbelt
This is not a sure thing, but from a quick scan of your code, it looks like you are constructing an incomplete certificate in memory, which might hurt you further down the road, i.e. when transmitting the cert, which is then checked by the other party. Specifically, check the code to construct

Fwd: Problem with generating keys (lib not commandline)

2008-11-06 Thread Michael Simms
Hi, I posted this last week, and a couple of people said they could help but then, I havent heard any more. If someone has any ideas, they would be gratefully appreciated. I am having a bit of a problem generating a set of new keys. I have code that works just fine when using a pair of

Re: Problem with generating keys (lib not commandline)

2008-10-31 Thread Kyle Hamilton
Before I look at what you've got, have you compared this to the rsa.c file in the apps/ directory of the source distribution? -Kyle H On Fri, Oct 31, 2008 at 1:13 AM, Michael Simms [EMAIL PROTECTED] wrote: I am having a bit of a problem generating a set of new keys. I have code that works

Problem with generating keys (lib not commandline)

2008-10-31 Thread Michael Simms
I am having a bit of a problem generating a set of new keys. I have code that works just fine when using a pair of imported keys from a file generated from the openssl commandline. However when I try and use RSA_generate_key, I can obtain the public and private keypair, they validate using

Re: Problem with generating keys (lib not commandline)

2008-10-31 Thread Michael Simms
I've RTFM, Ive spent quite literally days looking at websites, Ive looked at source, I even bought the o-reilly openssl book. I don't understand the ins and outs of encryption, Im just a regular coder, not a cryptographer, but from what I can see, the code should work. There IS a fairly good