txedo.com
Generate RSA keys and write to a PEM file in Java - txedo.com
Tutorial that shows how to generate RSA keys in Java and write them to a PEM file using BouncyCastle. The code is available to download from GitHub.