A KeyStore can store and retrieve entries containing an RSA private key and a certificate with the public key. This is the preferred way to do it, because you can manipulate the keys with keytool, or use a PKCS#12 key store with other tools; and you can use the keys with SSL via a KeyManagerFactory.
If you just have an RSA public key, you can generate a certificate based on it using the Bouncy Castle X509V3CertificateGenerator.
Joined: Jan 15, 2009
thank you so much
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com