Export a self-signed certificate
15.2.1.2. Export a self-signed certificate Once a key pair has been generated for the server to use, a certificate must be created. Procedure 15.2, “Export a certificate” details the steps to export the ejb-ssl key from the key store named localhost.keystore . Procedure 15.2. Export a certificate This procedure exports a certificate from a key store into a file. Issue the following command: keytool -export -alias ejb-ssl -file mycert.cer -keystore localhost.keystore Enter the key store password Result: A certificate is exported to the file mycert.cer .