<div dir="ltr">Hi!<div><br></div><div>Did you start the ssl application?</div><div><br></div><div>Regards Ingela Erlang/OTP Team - Ericsson AB<br><div class="gmail_extra"><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div class="gmail_quote" style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><div><div class="gmail-adm" style="margin:5px 0px"><div id="gmail-q_16485053be8a8f78_1" class="gmail-ajR gmail-h4" style="background-color:rgb(241,241,241);border:1px solid rgb(221,221,221);clear:both;line-height:6px;outline:none;width:20px;color:rgb(80,0,80);font-size:11px"><br class="gmail-Apple-interchange-newline"></div></div></div></div></div></div><br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-07-10 8:21 GMT+02:00 Prakash Parmar <span dir="ltr"><<a href="mailto:prakash.parmar@outlook.com" target="_blank">prakash.parmar@outlook.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div id="m_3197951214481674427divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="margin-top:0;margin-bottom:0">Hello,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I have a web-server based on inets otp application and running completely fine over 'http' in order to support 'https' I have changed inets configuration </p>
<p style="margin-top:0;margin-bottom:0">a<span style="font-size:12pt">s per the sample configuration located at Erlang's repo [1]. </span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Here are the config file snippet I had changed/added,</p>
<p style="margin-top:0;margin-bottom:0"></p>
<table cellspacing="0" class="m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse;border:1px solid rgb(198,198,198);table-layout:fixed">
<tbody>
<tr>
<td class="m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse;border:1px solid rgb(198,198,198);width:718px">
<div><span style="font-family:"Courier New",monospace;font-size:10pt">...</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">SocketType ssl</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">SSLCertificateFile      {{install_dir}}/config/www/<wbr>certs/server.pem</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">SSLCertificateKeyFile   {{install_dir}}/config/www/<wbr>certs/server.pem</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">SSLVerifyClient 0</span></div>
<div><span style="font-family:"Courier New",monospace;font-size:10pt">...</span></div>
</td>
</tr>
</tbody>
</table>
 </div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
I have also generated certificate files[2] and kept it in above mentioned path. </div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
unfortunately node is crashing at startup and following logs is printed on shell.  </div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<table cellspacing="0" class="m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse;border:1px solid rgb(198,198,198);table-layout:fixed">
<tbody>
<tr>
<td class="m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse;border:1px solid rgb(198,198,198);width:719px">
<div><span style="font-size:10pt;font-family:"Courier New",monospace">=CRASH REPORT==== 9-Jul-2018::12:13:50 ===</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">  crasher:</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    initial call: application_master:init/4</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    pid: <0.902.0></span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    registered_name: []</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    exception exit: {{shutdown,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                      {failed_to_start_child,httpd_<wbr>sup,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                       {shutdown,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                        {failed_to_start_child,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                         {httpd_instance_sup,any,8881,<wbr>default},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                         {shutdown,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                          {failed_to_start_child,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                           {httpd_acceptor_sup,any,8881,<wbr>default},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                           {shutdown,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                            {failed_to_start_child,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                             {httpd_acceptor_sup,any,8881,<wbr>default},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                             {'EXIT',</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                              {function_clause,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                               [{http_transport,start,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [ssl],</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [{file,"http_transport.erl"},<wbr>{line,54}]},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                {httpd_acceptor,do_socket_<wbr>start,1,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [{file,"httpd_acceptor.erl"},<wbr>{line,101}]},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                {httpd_acceptor,do_init,4,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [{file,"httpd_acceptor.erl"},<wbr>{line,94}]},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                {httpd_acceptor,acceptor_init,<wbr>8,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [{file,"httpd_acceptor.erl"},<wbr>{line,82}]},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                {proc_lib,init_p_do_apply,3,</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                 [{file,"proc_lib.erl"},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                                  {line,247}]}]}}}}}}}}}},</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">                     {inets_app,start,[normal,[]]}<wbr>}</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">      in function  application_master:init/4 (application_master.erl, line 134)</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    ancestors: [<0.901.0>]</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    messages: [{'EXIT',<0.903.0>,normal}]</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    links: [<0.901.0>,<0.739.0>]</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    dictionary: []</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    trap_exit: true</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    status: running</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    heap_size: 987</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    stack_size: 27</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">    reductions: 166</span></div>
<div><span style="font-size:10pt;font-family:"Courier New",monospace">  neighbours:</span></div>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Does anyone know what might be the problem ? </div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
I have looked into <span style="font-family:"Courier New",monospace;font-size:10pt">'</span><span style="font-family:"Courier New",monospace;font-size:10pt">http_transport</span><span style="font-family:"Courier New",monospace;font-size:10pt">'</span>
 module's code and it seems that <span style="font-family:"Courier New",monospace;font-size:10pt">
start/1</span> function<span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">[3]</span> is not accepting
<span style="font-family:"Courier New",monospace">'</span><span style="font-family:"Courier New",monospace">ssl</span><span style="font-family:"Courier New",monospace">'</span> atom as an arity,</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Arity for this function is like <span style="font-family:"Courier New",monospace;font-size:10pt">{ssl, <Certificate_file_path></span><span style="font-family:"Courier New",monospace"><span style="font-size:10pt">}</span>. <span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">Any
 idea on this ? Did I missed anything ?</span></span></div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
/ cheers,</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Prakash Parmar</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
Reference,</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
[1] <a href="https://github.com/erlang/otp/blob/master/lib/inets/examples/server_root/conf/ssl.conf" class="m_3197951214481674427OWAAutoLink" id="m_3197951214481674427LPlnk854783" target="_blank">https://github.com/erlang/<wbr>otp/blob/master/lib/inets/<wbr>examples/server_root/conf/ssl.<wbr>conf</a></div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
     <a href="https://github.com/erlang/otp/blob/master/lib/inets/examples/server_root/conf/httpd.conf" class="m_3197951214481674427OWAAutoLink" id="m_3197951214481674427LPlnk785161" target="_blank">https://github.com/erlang/<wbr>otp/blob/master/lib/inets/<wbr>examples/server_root/conf/<wbr>httpd.conf</a></div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
[2] <a href="https://devcenter.heroku.com/articles/ssl-certificate-self" class="m_3197951214481674427OWAAutoLink" id="m_3197951214481674427LPlnk451388" target="_blank">https://devcenter.heroku.<wbr>com/articles/ssl-certificate-<wbr>self</a></div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
     <a href="https://stackoverflow.com/questions/991758/how-to-get-pem-file-from-key-and-crt-files" class="m_3197951214481674427OWAAutoLink" id="m_3197951214481674427LPlnk492621" target="_blank">https://stackoverflow.com/<wbr>questions/991758/how-to-get-<wbr>pem-file-from-key-and-crt-<wbr>files</a></div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<br>
</div>
<div id="m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
[3] <a href="https://github.com/erlang/otp/blob/177a3470d598c892e0b7251cd2d9219aebcd3747/lib/inets/src/http_lib/http_transport.erl#L54" class="m_3197951214481674427OWAAutoLink" id="m_3197951214481674427LPlnk257848" target="_blank">https://github.com/erlang/<wbr>otp/blob/<wbr>177a3470d598c892e0b7251cd2d921<wbr>9aebcd3747/lib/inets/src/http_<wbr>lib/http_transport.erl#L54</a></div>
<br>
<br>
<br>
</div>
</div>

<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>