<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 05/12/2014 10:25 PM, Dmitri Zimine
wrote:<br>
</div>
<blockquote
cite="mid:B3E8C7C6-93F3-44EA-8F29-0C1553A0A792@stackstorm.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div>The problem: Keystone authentication on MAC works from
command line, but fails when run from PyCharm. And I want to run
PyCharm to debug! </div>
<div><br>
</div>
<div>The root cause: Keystone uses openssl cms which is only
available in new openssl. I installed openssl via brew, and got
it in /usr/local/bin. Terminal works just fine because I have
paths properly setup in /etc/paths file. But PyCharm and other
non-terminal applications dont use it! </div>
<div> </div>
<div>The right solution: </div>
<div> create a file /etc/launchd.conf with the following line:</div>
<div> <span style="background-color: rgb(19, 119, 62); color:
rgb(255, 240, 165); font-family: Courier;">setenv PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin</span></div>
<div><font color="#666666" face="Lucida Grande, Lucida Sans
Unicode, Helvetica, Arial, Verdana, sans-serif"><b> </b></font></div>
<div>The hack solution is:</div>
<div> sudo mv /usr/bin/openssl /usr/bin/openssl_bak</div>
<div> sudo ln -s /usr/bin/local/openssl /usr/bin/openssl</div>
<div><br>
</div>
<div>DZ> </div>
<div><br>
</div>
<div><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
OpenStack-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a>
</pre>
</blockquote>
This is a general problem, and solution, for Keystone on Mac.<br>
</body>
</html>