Export the Openfire self-signed certificate used on the Windows based Openfire server. This procedure uses the sample values in the Key customer configuration information for XMPP federation section.
On Windows, open a DOS prompt.
Change the directories to <Openfire install dir>\resources\security, where <Openfire install dir> is the directory where Openfire is installed.
Run the following to use the keytool command to export the certificate: keytool -export -alias <of domain>_rsa -file openfire.cer -keystore keystore.
ADDITIONAL INFORMATION:
The keytool command is provided in the JDK distribution of Java and sometimes with Openfire in <Openfire install dir>\jre\bin.
If the system prompts for the password, enter the keystore password.