<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Andre,<div class=""><br class=""></div><div class="">I come back to this.</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 03.06.2016 um 03:48 schrieb Andre LaBranche &lt;<a href="mailto:dre@apple.com" class="">dre@apple.com</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://twistedmatrix.com/documents/current/core/howto/endpoints.html" style="background-color: rgba(255, 255, 255, 0);" class=""><font class="">https://twistedmatrix.com/documents/current/core/howto/endpoints.html</font></a></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">An example (minimally specified) TLS endpoint:&nbsp;<code class="literal docutils">tls:example.com:443</code>.</span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class=""><br class=""></span></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="background-color: rgba(255, 255, 255, 0);" class="">Note: we tend to use UNIX domain sockets much more than TCP these days, and I don't believe I've ever tested TLS from CalendarServer to Postgres, but it should work if Postgres is configured correctly and you do the right stuff with certs, etc.</span></div></div></blockquote></div><div class=""><br class=""></div>If I try this:</div><div class="">- - -</div><div class=""><div class="">&nbsp; &nbsp;&nbsp;<span class="Apple-tab-span" style="white-space:pre">        </span>&lt;key&gt;endpoint&lt;/key&gt;</div><div class="">&nbsp; &nbsp; <span class="Apple-tab-span" style="white-space:pre">        </span>&lt;string&gt;tls:db4.<a href="http://lrau.net" class="">lrau.net</a>&lt;/string&gt;</div><div class="">- - -</div><div class="">I get:</div><div class="">- - -</div><div class=""><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp;&nbsp;File "/usr/local/lib/python2.7/site-packages/txdav/base/datastore/dbapiclient.py", line 308, in _connectorFor_pg8000</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">&nbsp; &nbsp; if params.unixsocket:</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">AttributeError: 'DBAPIParameters' object has no attribute 'unixsocket'</span></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">- - -</div></div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">In dbapiclient.py, I see:</div><div style="margin: 0px; font-size: 10px; line-height: normal; font-family: Monaco;" class="">- - -</div><div style="margin: 0px; line-height: normal;" class=""><div style="margin: 0px; line-height: normal;" class=""><font face="Monaco" size="1" class="">&nbsp; &nbsp; &nbsp; &nbsp; if self.endpoint.startswith("unix:"):</font></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Monaco; font-size: x-small;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>. . .</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Monaco; font-size: x-small;" class="">&nbsp; &nbsp; &nbsp; &nbsp; elif self.endpoint.startswith("tcp:"):</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Monaco; font-size: x-small;" class=""><span class="Apple-tab-span" style="white-space:pre">                </span>. . .</span></div><div style="margin: 0px; line-height: normal;" class=""><span style="font-family: Monaco; font-size: x-small;" class="">&nbsp; &nbsp; &nbsp; &nbsp; self.user = user</span></div><div style="font-family: Monaco; font-size: 10px;" class="">- - -</div><div style="font-family: Monaco; font-size: 10px;" class="">Shall I report a bug for this?</div><div style="font-family: Monaco; font-size: 10px;" class=""><br class=""></div><div style="font-family: Monaco; font-size: 10px;" class="">Axel</div></div><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-position: normal; font-variant-caps: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">---<br class="">PGP-Key:29E99DD6 &nbsp;☀ &nbsp;computing @ chaos claudius</div></div></div>
</div>
<br class=""></div></body></html>