***Being worked on***

  1. Go to $OPENFIRE_HOME/resources/security
  2. Put your private key (cert.key) and public key (cert.crt) in the current directory (you can remove them later)
  3. Download ImportKey.java and compile (javac ImportKey.java)
  4. openssl pkcs8 -topk8 -nocrypt -in cert.key -inform PEM -out cert.key.der -outform DER
  5. openssl x509 -in cert.crt -inform PEM -out cert.crt.der -outform DER
  6. export PATH=`which java`:$PATH
  7. a=`which java`; cd `dirname $a`; cd ..; b=`pwd`; export JAVA_HOME=$b
  8. java ImportKey lovelysystems.com.key.der _.lovelysystems.com.crt.der


*Change the keytool passwords back to the defaults (from ‘importkey’ to ‘changeit’)

  1. keytool -storepasswd -keystore /root/keystore.ImportKey
  2. keytool -keypasswd -alias importkey -keystore keystore.ImportKey
* Put the new keystore in the correct directory, restart openfire and finish up.
  1. mv /root/keystore.ImportKey $OPENFIRE_HOME/resources/security
  2. service openfire restart
  3. Log in to the web interface, go to the ssl certs. You'll see that the certificate is "Pending Validation"
    1. Copy the contents of /cert/cert.crt