This post is part of a series about the worlds of Java and SSL. I hope to do 1 post a day on this topic. The resulting posts will become the basis for another section of a talk that I am scheduled to give on August 10 at the Boulder/Denver Cybersecurity Meetup.
How to Generate a Key Pair Using Java
public KeyPair createKeyPair () throws GeneralSecurityException {
KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");
return keyPairGenerator.genKeyPair();
}
After generating a certificate, generating a key pair was almost anti-climatic.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment