<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br></div><div>Bria 3 suddenly stopped working on my mac, reporting this:</div><div><br></div><div><div> All accounts failed to enable</div><div><br></div><div> Account: test could not be enabled.</div><div> Problem at server, error 503. Try again later.</div></div><div><br></div><div>Nothing shows up on fs_cli, but tcpdump shows traffic. Changing sofia to loglevel 9 gives me this:</div><div><br></div><div><div> tport_wakeup_pri(0x164dbd0): events IN</div><div> tport_alloc_secondary(0x164dbd0): new secondary tport 0x7f39b9acce80</div><div> tport_tls_accept(0x7f39b9acce80): new connection from tls/x.x.x.x:33351/sips</div><div> tls_connect(0x7f39b9acce80): events NEGOTIATING</div><div> tls_connect(0x7f39b9acce80): events NEGOTIATING</div><div> tls_connect(0x7f39b9acce80): TLS setup failed (error:00000001:lib(0):func(0):reason(1))</div><div> tport_close(0x7f39b9acce80): tls/x.x.x.x:33351/sips</div></div><div><br></div><div>This is not a happy Canada day, where's my phone? It turns out the self-signed root CA generated by `gentls_cert setup` has expired.</div><div>How I figured it out? First, on the server:</div><div><br></div><div><div> # openssl x509 -noout -in /opt/freeswitch/conf/ssl/CA/cacert.pem -dates</div><div> notBefore=Jun 2 01:44:26 2012 GMT</div><div> notAfter=Jul 1 01:44:26 2012 GMT</div></div><div><br></div><div>Second, because I opened <a href="https://my-server:5061">https://my-server:5061</a> on Safari and got a "This certificate is not valid (expired root)".</div><div><br></div><div>It seems the script is missing `-days`, here: <a href="http://git.freeswitch.org/git/freeswitch/tree/scripts/gentls_cert.in#n83">http://git.freeswitch.org/git/freeswitch/tree/scripts/gentls_cert.in#n83</a></div><div>Manually adding it fixed the problem.</div><div><br></div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; ">Ship, ahoy! Hast seen the White Whale?</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; "> <span class="Apple-converted-space"> </span>- Cap'n Ahab</div></div></div>
</div>
<br></body></html>