Creating a public.pem and private.pem key.

You'll have to provide a little more information as to why you're creating these keys.
 
these keys are required for my licence key mechanism

Code:
NSData *publicKeyData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"public" ofType:@"pem"]]];
 
these keys are required for my licence key mechanism

Code:
NSData *publicKeyData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"public" ofType:@"pem"]]];

Ah. I would assume that you might need to use OpenSSL to generate the keys. That's how I've generated keys and certificates for a FreeRADIUS setup I'm using here at work.
 
Back
Top