ejabberd icon indicating copy to clipboard operation
ejabberd copied to clipboard

Need help on ejabberd EC2 https

Open ismailmohammed opened this issue 8 years ago • 4 comments

Hi,

I have configured HTTP-bind 5281 in EC2 AWS but not able to connect. but same is working for 5280 http://ejab.myschoolmyworld.com/admin -5280 https://ejab.myschoolmyworld.com/admin-5281 (This site can’t be reached)

can anyone help me on this, please? below config in my ejabberd.yml file,

    port: 5280
    ip: "222.21.12.111"
    module: ejabberd_http      
    request_handlers:
      "/ws": ejabberd_http_ws
      "/log": mod_log_http
      "/bosh": mod_bosh
      "/oauth": ejabberd_oauth
      "/api": mod_http_api
      "/http-bind": mod_bosh  
      "/websocket": ejabberd_http_ws  
    web_admin: true
    http_bind: true
    captcha: false
  -
    port: 5281
    ip: "222.21.12.111"
    module: ejabberd_http
    certfile: "C:\\ProgramData\\ejabberd\\conf\\server.pem"
    tls: true 
    request_handlers:
      "/log": mod_log_http
      "/bosh": mod_bosh
      "/oauth": ejabberd_oauth
      "/api": mod_http_api
      "/http-bind": mod_bosh   
    web_admin: true
    http_bind: true 

In local when I use 5280 as BOSH URL it's working but in Production, it's my site is in https so u i have to use BOSH URL as https (5281).

Thanks in advance. Thasnk & Regards, Md.Ismail.

ismailmohammed avatar May 28 '18 11:05 ismailmohammed

Somehow i doubt that your server have C:\ProgramData\ejabberd\conf\server.pem file...

Also this is probably just self signed certificate that we distribute with ejabberd, you would need to create one for your domain name.

prefiks avatar May 28 '18 12:05 prefiks

Hi,

Now I have commended this line certfile: "C:\ProgramData\ejabberd\conf\server.pem" still be are getting the same problem.

attached is the file from aws listeners. ejab_listner

please help me.

Thank you.

ismailmohammed avatar May 28 '18 13:05 ismailmohammed

You need to have that line, it just must point to existing file with real certificate issued for your domain, so you must acquire certificate for your domain, save it on server somewhere and use path to that file in certfile option.

This have absolutly nothing to do with ejabberd, so i won't be able to help you further.

prefiks avatar May 28 '18 13:05 prefiks

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Jun 09 '19 12:06 lock[bot]