Help! Trouble Generating CSR in Openfire Admin Console

I attempted to generate a CSR request from the Openfire admin gui under Server Settings->Server Certificate and when I enter the FQDN of the Openfire server under “Name” and submit it to a 3rd party vendor, they show the local host name instead.

Where do I change that info in the form?

Also, i know the webserver is jetty, but that’s not one of the web server software options, do I want to choose tomcat, apache or???

Any help is much appreciated!

anna

Hi anna,

it usually does not matter what you enter as name. The CSR or a self signed certificate will (should) always match xmpp.domain (Server - Manager - Information – Server Properties, Server Name). It has nothing to do with your host name which is also displayed on “Server - Manager - Information – Environment, Host Name”.

You may use “http://www.trustico.com/ssltools/decode/csr/decode_csr_certificate_signing_reque st.html” or a similar service to verify that the CSR looks fine before sending it to your 3rd party vendor.

Tomcat may be close as it is also java based. Anyhow it should not matter too much.

LG

Thanks for your reply, I was able to change my server name in Openfire and the CSR generated properly. Do I simply past the CA’s request into the box once I receive it and save it?

Hi,

you should receive a certificate and simply paste it in the admin console.

LG

Well it was fairly easy to paste the Vendor cert. into the admin console, however when I saved it and did an http restart, I know get an error when I go to https://localhost:9091/webchat. Do I need to download the JDK tools?

HTTP ERROR: 500
No Java compiler available
RequestURI=/webchat/

Caused by:
java.lang.IllegalStateException: No Java compiler available
at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.ja va:224)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:559)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:285)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at org.mortbay.jetty.servlet.DefaultServlet.doGet(DefaultServlet.java:463)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1093)
at org.jivesoftware.webchat.SetCharacterEncodingFilter.doFilter(SetCharacterEncodi ngFilter.java:45)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)
at org.jivesoftware.webchat.SetupFilter.doFilter(SetupFilter.java:92)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:726)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollect ion.java:206)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.j ava:829)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)

To resolve this issue, I downloaded and installed JDK 1.6 onto the Openfire server, and then set the Windows Environmental Variables path to \C:\Program Files\Java\jdk1.6.0_10\bin, restarted the server and presto, the SSL is working.

Anna