Properly set the key length

I was setting the key length to 2048  but this was being taken in
as a value for -rand, and the key length was being set to 512 (the default)

Change-Id: Ib4559fe27051429275f8dd03f34a506d31a7f420
Merge "Properly set the key length"