This took me frustratingly long to find out.
When importing a signed SSL certificate on my openfire server, the web interface would always show me this error:
there was an error one importing private key and signed certificate
Typo aside, that’s some pretty obscure error.
Users have come up with detailed guides on how to convert certificates to other formats, setting system properties to make them work once imported back, but… Nothing helped, in my case.
The solution to my problem was: when you import your certificates (using the form in the Server Settings/Server Certificates section), just… type something on the
Pass Phrase used for creating Private Key. Even if you never set a password, type something, anything will do. Just don’t leave it empty.
I’m talking about this guy:
That’s it, you can restart your server. Meh.