Something with the environment perhaps then. <div><br></div><div>Thanks.</div><div><br></div><div>~B<br><br><div class="gmail_quote">On Tue, Jun 25, 2013 at 7:25 PM, Ingela Andin <span dir="ltr"><<a href="mailto:ingela.andin@gmail.com" target="_blank">ingela.andin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">HI again!<br><div><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">2013/6/25 Bhasker Kode <span dir="ltr"><<a href="mailto:bosky101@gmail.com" target="_blank">bosky101@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, can you try with a valid cacertfile ? <div><br></div><div>I'm guessing this has to do with certificate chaining ( used in any production environment, but usually ignored in dev environments )<span><font color="#888888"><br>
<br></font></span></div></blockquote><div><br><br></div></div><div>It works with a valid certificate too!<br></div><div><div class="h5"><div><br><br></div><div>Regards Ingela Erlang/OTP team - Ericsson AB<br></div><div><br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><span><font color="#888888">~B</font></span><div><div><div><br><div class="gmail_quote">
On Tue, Jun 25, 2013 at 6:50 PM, Bhasker Kode <span dir="ltr"><<a href="mailto:bosky101@gmail.com" target="_blank">bosky101@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did you run this on a mac? <div><br></div><div>Interestingly it worked for me on my desktop( mac osx lion), but not in the environment where R15-03 worked (ubuntu 11.04).<span><font color="#888888"><div><br>
</div></font></span><div><span><font color="#888888">~B</font></span><div><div><br><br><div class="gmail_quote">
On Tue, Jun 25, 2013 at 6:24 PM, Ingela Andin <span dir="ltr"><<a href="mailto:ingela.andin@gmail.com" target="_blank">ingela.andin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">It works fine for me on both R16B01 and R16B .... (I edited out the real hostnames)<br><div><br>Erlang R16B01 (erts-5.10.2) [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V5.10.2 (abort with ^G)<br>
1> c(test).<br>{ok,test}<br>2> test:start().<br><0.54.0><br> <br> <0.54.0> listening on 8443 use_verify_peer:false use_accept_timeout:false<br>3> test:client("XXX"). <br><br>New connection<br>
loopdata Accepted! Ready to receive data<br>Socket received data...<br><<"GET / HTTP/1.1\r\nHost:XXX:8443\r\n">><br><br>client got back <br><<"{\"ok\":true}">><br>4> <br>
<br>loopdata Accepted! Ready to receive data4> <br><br><br>Erlang R16B (erts-5.10.1) [source] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]<br><br>Eshell V5.10.1 (abort with ^G)<br>1> c(test).<br>
test.erl:124: Warning: variable 'Port' is unused<br>{ok,test}<br>2> test:start().<br><0.54.0><br> <br> <0.54.0> listening on 8443 use_verify_peer:false use_accept_timeout:false<br>3> test:client("XXX").<br>
<br>New connection<br>loopdata Accepted! Ready to receive data<br>Socket received data...<br><<"GET / HTTP/1.1\r\nHost:XXX:8443\r\n">><br><br>client got back <br><<"{\"ok\":true}">><br>
<br>loopdata Accepted! Ready to receive data4> <br><br><br></div><div>Regards Ingela Erlang/OTP team - Ericsson AB<br></div><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/6/25 Bhasker Kode <span dir="ltr"><<a href="mailto:bosky101@gmail.com" target="_blank">bosky101@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Ping!<div><br></div><div>I'm posting my experience upgrading from an Ubuntu 11.04 image R15B-02 to a more recent release.</div>
<div>tl;dr <a href="https://gist.github.com/bosky101/5844535" target="_blank">https://gist.github.com/bosky101/5844535</a></div>
<div><br></div><div>I began with R16B01, R16B, R16A, R15B-03 respectively and was only able to run the expected TLS behaviour in R15-03.</div><div>I tested them on different instances of the ubuntu 11.04 image. Various OpenSSL made no difference.</div>
<div><br></div><div>Here is a module to test the same with accompanying notes</div><div><a href="https://gist.github.com/bosky101/5844535" target="_blank">https://gist.github.com/bosky101/5844535</a></div><div>It has constants for ?USE_VERIFY_PEER, ?USE_SSL_ACCEPT. You may have to pass ?CERT,?KEY,?CA as well.</div>
<div><br></div><div>Considering that under the same circumstances - only R15B-03 worked - I wonder if this is a regression issue.</div><div>Will be happy to pass ssh access if it helps.</div><div><br></div><div>~Bosky | Verbs.im | @bhaskerkode</div>
<br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div></div>
</blockquote></div></div></div><br></div></div></div>
</blockquote></div><br></div>