librelist archives

« back to archive

Bosh configuration Issue with secure network (https)

Bosh configuration Issue with secure network (https)

From:
Mohit Jain
Date:
2014-06-05 @ 17:37
Hi,
 
Our application is on
secure port (HTTPS) and we are unable to make the connection to the
openfire server using below code
 BOSH_Server with HTTPS
(https://mohitserver:7443/http-bind/",).
 
	1. Able to successfully login by using java code. 
             BOSHConfiguration boshConfiguration = new BOSHConfiguration(false,
xmppServerIp, xmppServerPortNumber, "/http-bind/", xmppServerName);
 boshConfiguration.setDebuggerEnabled(false);
 connection = new
BOSHConnection(boshConfiguration);
 connection.connect();
	1. When, initialize converse.js by using below code  
 converse.initialize({
                        auto_list_rooms: true,
                        allow_muc: true,
                        auto_subscribe: true,
                        allow_contact_requests:
true,
                        debug: true,
                        bosh_service_url:
"https://mohitserver:7443/http-bind/",
                        xmpp_server_name:
"conference. chat",
                        xmpp_default_nick_name:
"Mohit Officer",
                        hide_muc_server: true,
                        i18n: locales['en'],
                        expose_rid_and_sid:
true,
                        prebind: true,
                        jid: 'mohit@chat',
                        sid: 'e40a582e',
                        rid: ridvalue,
                        rosterview: true,
                        show_controlbox_by_default: true,
                        xhr_user_search: false
                    });

Connection getting aborted
in the browser and getting exception (javax.net.ssl.SSLException: Received
fatal alert: bad_certificate) in the open fire logs.
 
Note: We are not using any
explicit certificate on the openfire server.

BOSH_Server with HTTP
(http://mohitserver:7070/http-bind/",).
1.       Able to successfully login by using java code.
2.       When, initialize converse.js by using below code 
Every this is working fine.
 
Please advise.
 
Thanks,
Mohit Jain

Re: [conversejs] Bosh configuration Issue with secure network (https)

From:
Jc Brand
Date:
2014-06-12 @ 22:39
Hi Mohit

Sounds like you don't have OpenFire correctly configured to serve BOSH with
SSL.

You should consider writing to openfire for support.

Regards
JC

On Fri, Jun 06, 2014 at 01:37:25AM +0800, Mohit Jain wrote:
>    Hi,
>     
>    Our application is on secure port (HTTPS) and we are unable to make the
>    connection to the openfire server using below code
>     BOSH_Server with HTTPS (https://mohitserver:7443/http-bind/",).
>     
> 
>     1. Able to successfully login by using java code.
> 
>                 BOSHConfiguration boshConfiguration = new
>    BOSHConfiguration(false, xmppServerIp, xmppServerPortNumber,
>    "/http-bind/", xmppServerName);
>     boshConfiguration.setDebuggerEnabled(false);
>     connection = new BOSHConnection(boshConfiguration);
>     connection.connect();
> 
>     2. When, initialize converse.js by using below code
> 
>     converse.initialize({
>                            auto_list_rooms: true,
>                            allow_muc: true,
>                            auto_subscribe: true,
>                            allow_contact_requests: true,
>                            debug: true,
>                            bosh_service_url:
>    "https://mohitserver:7443/http-bind/",
>                            xmpp_server_name: "conference. chat",
>                            xmpp_default_nick_name: "Mohit Officer",
>                            hide_muc_server: true,
>                            i18n: locales['en'],
>                            expose_rid_and_sid: true,
>                            prebind: true,
>                            jid: [1]'mohit@chat',
>                            sid: 'e40a582e',
>                            rid: ridvalue,
>                            rosterview: true,
>                            show_controlbox_by_default: true,
>                            xhr_user_search: false
>                        });
>    Connection getting aborted in the browser and getting exception
>    (javax.net.ssl.SSLException: Received fatal alert: bad_certificate) in the
>    open fire logs.
>     
>    Note: We are not using any explicit certificate on the openfire server.
>    BOSH_Server with HTTP (http://mohitserver:7070/http-bind/",).
>    1.       Able to successfully login by using java code.
>    2.       When, initialize converse.js by using below code
>    Every this is working fine.
>     
>    Please advise.
>     
>    Thanks,
>    Mohit Jain
>     
> 
> References
> 
>    Visible links
>    1. mailto:'sup@appchat'