Generates a new key pair and writes it to the specified file.

For more information see: