Closed GoogleCodeExporter closed 9 years ago
uMurmur 0.2.6 with OpenSSL 1.0.0d works great with :
-OpenSSL 1.0.0c certificates
-OpenSSL 0.9.7m certificates
Meaning that this is a PolarSSL-related issue.
This is an important thing to know when using PolarSSL...
Original comment by DiaoulAel
on 26 Mar 2011 at 5:09
Made a couple of test and I noticed that the generated keys look a bit
different:
'openssl req -x509 -newkey rsa:1024 ...' creates a key that starts with:
-----BEGIN PRIVATE KEY-----
'openssl genrsa 1024' creates a key that starts with:
-----BEGIN RSA PRIVATE KEY-----
PolarSSL looks for the latter line while parsing the key:
s1 = (unsigned char *) strstr( (char *) key,
"-----BEGIN RSA PRIVATE KEY-----" );
Don't know who is at fault here... OpenSSL or PolarSSL. I'll drop a line at the
PolarSSL forum tomorrow if you don't beat me to it :)
Original comment by fatbob.s...@gmail.com
on 26 Mar 2011 at 9:33
openssl req generates PKCS#8 key format files. PolarSSL can only handle regular
RSA key format files. Either generate the key with 'openssl genrsa 1024' or
convert it with 'openssl rsa -in pkcs8_keyfile.key -out rsa_keyfile.key'
http://polarssl.org/forum_view_topic?topic_id=132
Original comment by fatbob.s...@gmail.com
on 16 Apr 2011 at 8:23
Original issue reported on code.google.com by
DiaoulAel
on 26 Mar 2011 at 5:03