How do I create a new key pair and save them in files? OpenSSL I guess. I have Windows 7 and Xampp, which has OpenSSL in the APache directory (although I am having some problems with openssl_pkey_new() (see Why does openssl_pkey_new() fail?).
Anyway, once I get OpenSSL configured, what does the code look like to create a new key pair and save them in files?