I am needing to migrate some simple KeyPair creation from Javascript to Java. Using the NodeJS crypto package, this was extremely simple:
const keyPair = crypto.