<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hello Ingela,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Thanks for your response <span>��</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm using rebar3 for release. I have mentioned
<span style="font-family: Consolas, Courier, monospace;">ssl</span> application in config file prior to
<span style="font-family: Consolas, Courier, monospace;">inets</span> application(though sequence doesn't matter) and as per my understanding rebar3 will take care of start sequence and I don't think so there is an option to define application start sequence
 explicitly. Am I right ? </p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Let me know if there is any way to make sure to start
<span style="font-family: Consolas, Courier, monospace;">ssl</span> application before
<span style="font-family: Consolas, Courier, monospace;">inets</span> application.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">/Cheers,</p>
<p style="margin-top:0;margin-bottom:0">Prakash Parmar</p>
<div id="Signature">
<div><br>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Ingela Andin <ingela.andin@gmail.com><br>
<b>Sent:</b> Tuesday, July 10, 2018 9:33:50 PM<br>
<b>To:</b> Prakash Parmar<br>
<b>Cc:</b> Erlang Questions<br>
<b>Subject:</b> Re: [erlang-questions] Node Crash for inets config 'SocketType ssl'</font>
<div> </div>
</div>
<meta content="text/html; charset=utf-8">
<div>
<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="x_gmail_extra"><br style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.8px; font-style: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)">
<div class="x_gmail_quote" style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:12.8px; font-style: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)">
<div>
<div class="x_gmail-adm" style="margin:5px 0px">
<div id="x_gmail-q_16485053be8a8f78_1" class="x_gmail-ajR x_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="x_gmail-Apple-interchange-newline">
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
<div class="x_gmail_extra"><br>
<div class="x_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="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div id="x_m_3197951214481674427divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<div id="x_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="x_m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198); table-layout:fixed">
<tbody>
<tr>
<td class="x_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="x_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="x_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="x_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="x_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="x_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="x_m_3197951214481674427ms-rteTable-default" style="border-collapse:collapse; border:1px solid rgb(198,198,198); table-layout:fixed">
<tbody>
<tr>
<td class="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_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="x_m_3197951214481674427OWAAutoLink" id="x_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="x_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="x_m_3197951214481674427OWAAutoLink" id="x_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="x_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="x_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="x_m_3197951214481674427OWAAutoLink" id="x_m_3197951214481674427LPlnk451388" target="_blank">https://devcenter.heroku.<wbr>com/articles/ssl-certificate-<wbr>self</a></div>
<div id="x_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="x_m_3197951214481674427OWAAutoLink" id="x_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="x_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="x_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="x_m_3197951214481674427OWAAutoLink" id="x_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>
</div>
</body>
</html>