I'm trying to write and read a PEM file that contains both a PublicKey and PrivateKey for Ed25519 in Java 15.
However it's not clear if the PEM format supports this, or exactly how to do it using the standard Java libraries (JCA). Most of the examples seem to use RSA.
What is the correct way to do this? Or is there a better approach?