∟DiffieHellman Private Key and Public Key Pair Sample
This section provides a tutorial example on how to run JcaKeyPair.java to generate a DiffieHellman private key and public key pair sample. Keys are stored PKCS#8 and X.509 encoding formats.
Now let's see the private key and public key generated by the DiffieHellman
algorithm: