tls, {certfile,

Error

=CRASH REPORT==== 11-Nov-2004::19:45:45 ===
  crasher:
    pid: <0.297.0>
    registered_name: []
    error_info: {{badmatch,{error,"SSL_CTX_use_certificate_file failed"}},
                  [{ejabberd_c2s,init,1},
                   {gen_fsm,init_it,6},
                   {proc_lib,init_p,5}]}
    initial_call: {gen,init_it,
                      [gen_fsm,
                       <0.227.0>,
                       <0.227.0>,
                       ejabberd_c2s,
                       [{gen_tcp,#Port<0.312>},
                        [{access,c2s},
                         tls,
                         {certfile,"./ejabberd.pem"},
                         {shaper,c2s_shaper}]],
                       []]}
    ancestors: [ejabberd_c2s_sup,ejabberd_sup,<0.38.0>]
    messages: []
    links: [<0.190.0>,<0.227.0>,#Port<0.349>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 610
    stack_size: 21
    reductions: 179
  neighbours:

=CRASH REPORT==== 11-Nov-2004::19:45:45 ===
  crasher:
    pid: <0.237.0>
    registered_name: []
    error_info: {{badmatch,{error,{{badmatch,
                                        {error,
                                            "SSL_CTX_use_certificate_file failed"}},
                                    [{ejabberd_c2s,init,1},
                                     {gen_fsm,init_it,6},
                                     {proc_lib,init_p,5}]}}},
                  [{ejabberd_listener,accept,3},{proc_lib,init_p,5}]}
    initial_call: {ejabberd_listener,init,
                                    [5223,
                                     ejabberd_c2s,
                                     [{access,c2s},
                                      tls,
                                      {certfile,"./ejabberd.pem"},
                                      {shaper,c2s_shaper}]]}
    ancestors: [ejabberd_listeners,ejabberd_sup,<0.38.0>]
    messages: []
    links: [#Port<0.312>,<0.235.0>,#Port<0.311>]
    dictionary: []
    trap_exit: false
    status: running
    heap_size: 233
    stack_size: 21
    reductions: 385
  neighbours:

=SUPERVISOR REPORT==== 11-Nov-2004::19:45:45 ===
     Supervisor: {local,ejabberd_listeners}
     Context:    child_terminated
     Reason:     {{badmatch,{error,{{badmatch,
                                        {error,
                                            "SSL_CTX_use_certificate_file failed"}},
                                    [{ejabberd_c2s,init,1},
                                     {gen_fsm,init_it,6},
                                     {proc_lib,init_p,5}]}}},
                  [{ejabberd_listener,accept,3},{proc_lib,init_p,5}]}
     Offender:   [{pid,<0.237.0>},
                  {name,5223},
                  {mfa,{ejabberd_listener,
                           start,
                           [5223,
                            ejabberd_c2s,
                            [{access,c2s},
                             tls,
                             {certfile,"./ejabberd.pem"},
                             {shaper,c2s_shaper}]]}},
                  {restart_type,transient},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=PROGRESS REPORT==== 11-Nov-2004::19:45:45 ===
          supervisor: {local,ejabberd_listeners}
             started: [{pid,<0.298.0>},
                       {name,5223},
                       {mfa,{ejabberd_listener,
                                start,
                                [5223,
                                 ejabberd_c2s,
                                 [{access,c2s},
                                  tls,
                                  {certfile,"./ejabberd.pem"},
                                  {shaper,c2s_shaper}]]}},
                       {restart_type,transient},
                       {shutdown,brutal_kill},
                       {child_type,worker}]

Explanation

The file containing the TLS/SSL certificate was not successfully loaded.

Solution

  • Check if the file ejabberd.pem exists.
  • Also, verify if it is readable by the user that is used to run ejabberd,
  • and finally, make sure that the path is correctly specified in your ejabberd.cfg configuration file.
Syndicate content