I needed to extract/generate a public ssh key from a java keystore so that the Java application could SFTP some files using public key authentication.
The problem was that I couldn’t find any way of converting an ssl public key to an ssh public key. It seems that although ssl and ssh private keys are compatible, the public keys are not.