Openfire self signed certificate

Hello,

I have Openfire server 4.1.6 on Ubuntu.
How I can generate and import self signed certificate with SHA1 algoritm on Openfire (if possible step by step)?
In web console generate only SHA256. This need to test Openfire with Xabber.apk android client. It dont’t
connect with SHA256. Please help!

Thank you.