java keytool public certificate tutorial code example
Example: jks export certificate
keytool -export -keystore examplestore -alias signFiles -file Example.cer
keytool -export -keystore examplestore -alias signFiles -file Example.cer