Write key : correct output_buf[] size.

This array size prevents the creation of keyfile.key with the "gen_key rsa_kize=8192" command, because pk_write_key_der generates more than 4096 characters when keysize >~ 7200 bits. A size of 8192 will be sufficient for the current limit of 8192 bits for RSA keys.