Increase SSL private key from 512 to 1024 bits.
Increase SSL private key from 512 to 1024 bits.

At Nicira, we are experimenting with the idea of converting XAPI SSL keys to SSH keys.  In some cases this might be convenient for giving XenServers access to remote resources without distributing a second set of keys.

OpenSSH, however, refuses to accept RSA keys shorter than 768 bits for use in authentication.  So this change is necessary, to make XAPI generate keys longer than the current default of 512 bits.

Additionally, RSA says "512-bit keys no longer provide sufficient security for anything more than very short-term security needs"
(http://www.rsa.com/rsalabs/node.asp?id=2218), so this change seems like a good idea in any case.

Increasing the key length makes generating the key at installation time take a bit longer, but the difference is not significant:
on my desktop, "openssl genrsa 512" takes about 10 ms and "openssl genrsa 1024" takes about 100 ms.

Signed-off-by: Ben Pfaff <6f50513b21952446fbc8c95a8f361b7aa434b7c7@nicira.com>

sharady/xcp-networkd,djs55/xcp-rrdd,johnelse/xcp-rrdd,djs55/xcp-networkd,sharady/xcp-networkd,robhoes/squeezed,djs55/xcp-networkd,koushikcgit/xcp-rrdd,koushikcgit/xcp-rrdd,simonjbeaumont/xcp-rrdd,koushikcgit/xcp-rrdd,johnelse/xcp-rrdd,koushikcgit/xcp-networkd,koushikcgit/xcp-networkd,djs55/squeezed,djs55/xcp-rrdd,simonjbeaumont/xcp-rrdd