<?xml version="1.0"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>CRIN Trac: Ticket #27: Crin2 certificate access</title>
    <link>https://trac.crin.org/trac/ticket/27</link>
    <description>&lt;p&gt;
When attempting to use Drush, when not root, we are not able to access the certificate.
&lt;/p&gt;
&lt;p&gt;
SSL error: Unable to get certificate from '/etc/ssl/cacert/crin1_cert.pem'
&lt;/p&gt;
&lt;p&gt;
How should we manage access to certificates?
Should we create a developers group?
&lt;/p&gt;
</description>
    <language>en-us</language>
    <image>
      <title>CRIN Trac</title>
      <url>https://trac.crin.org/trac/chrome/site/logo.gif</url>
      <link>https://trac.crin.org/trac/ticket/27</link>
    </image>
    <generator>Trac 1.0.2</generator>
    <item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jul 2015 16:42:48 GMT</pubDate>
      <title>hours, component changed; totalhours set</title>
      <link>https://trac.crin.org/trac/ticket/27#comment:1</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/27#comment:1</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                set to &lt;em&gt;0.15&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;component&lt;/strong&gt;
                changed from &lt;em&gt;backups&lt;/em&gt; to &lt;em&gt;crin2&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Replying to &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/27" title="defect: Crin2 certificate access (closed: fixed)"&gt;peter&lt;/a&gt;:
&lt;/p&gt;
&lt;blockquote class="citation"&gt;
&lt;p&gt;
When attempting to use Drush, when not root, we are not able to access the certificate.
&lt;/p&gt;
&lt;p&gt;
SSL error: Unable to get certificate from '/etc/ssl/cacert/crin1_cert.pem'
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Ah ha! This could explain the problems I have documented here:
&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="https://trac.crin.org/trac/ticket/18"&gt;https://trac.crin.org/trac/ticket/18&lt;/a&gt;
&lt;/li&gt;&lt;/ul&gt;&lt;blockquote class="citation"&gt;
&lt;p&gt;
How should we manage access to certificates?
Should we create a developers group?
&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
I don't think it is a big security issue if all users on the server have access to the CAcert certs so I have done this on both servers (previously they were only readable by &lt;tt&gt;root&lt;/tt&gt; and &lt;tt&gt;mysql&lt;/tt&gt;:
&lt;/p&gt;
&lt;pre class="wiki"&gt;chmod 755 /etc/ssl/cacert
chmod 644 /etc/ssl/cacert/*.pem
&lt;/pre&gt;&lt;p&gt;
I'd also be happy to restrict permissions if you think it is necessary, these certs and keys are used by MySQL and also non-public sites like the &lt;a class="ext-link" href="https://munin.crin.org/"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;Munin stats&lt;/a&gt; to save on the cost of commercial certs, if you install the &lt;a class="ext-link" href="https://www.cacert.org/index.php?id=3"&gt;&lt;span class="icon"&gt;​&lt;/span&gt;CAcert root certificates&lt;/a&gt; then you won't get browser security warnings.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>chris</dc:creator>

      <pubDate>Mon, 06 Jul 2015 17:18:22 GMT</pubDate>
      <title>hours, totalhours changed</title>
      <link>https://trac.crin.org/trac/ticket/27#comment:2</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/27#comment:2</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;hours&lt;/strong&gt;
                changed from &lt;em&gt;0&lt;/em&gt; to &lt;em&gt;0.02&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;totalhours&lt;/strong&gt;
                changed from &lt;em&gt;0.15&lt;/em&gt; to &lt;em&gt;0.17&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
See also &lt;a class="closed ticket" href="https://trac.crin.org/trac/ticket/18#comment:4" title="defect: Drush (closed: fixed)"&gt;ticket:18#comment:4&lt;/a&gt; -- all users on &lt;a class="wiki" href="https://trac.crin.org/trac/wiki/Crin2"&gt;Crin2&lt;/a&gt; need a &lt;tt&gt;~/.my.cnf&lt;/tt&gt; containing:
&lt;/p&gt;
&lt;pre class="wiki"&gt;[client]
host=crin1
ssl-cipher=DHE-RSA-AES256-SHA
ssl-ca=/etc/ssl/cacert/cacert.pem
ssl-cert=/etc/ssl/cacert/crin1_cert.pem
ssl-key=/etc/ssl/cacert/crin1_yassl_privatekey.pem
&lt;/pre&gt;&lt;p&gt;
For them to be able to use &lt;tt&gt;drush&lt;/tt&gt;, I have created &lt;tt&gt;/var/www/.my.cnf&lt;/tt&gt; so that the &lt;tt&gt;www-user&lt;/tt&gt; user can be used for running &lt;tt&gt;drush&lt;/tt&gt; commands.
&lt;/p&gt;
&lt;p&gt;
Peter -- please close this ticket if you think the issue is resolved.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item><item>
      
        <dc:creator>peter</dc:creator>

      <pubDate>Mon, 06 Jul 2015 17:23:25 GMT</pubDate>
      <title>status changed; resolution set</title>
      <link>https://trac.crin.org/trac/ticket/27#comment:3</link>
      <guid isPermaLink="false">https://trac.crin.org/trac/ticket/27#comment:3</guid>
      <description>
          &lt;ul&gt;
            &lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;
                changed from &lt;em&gt;new&lt;/em&gt; to &lt;em&gt;closed&lt;/em&gt;
            &lt;/li&gt;
            &lt;li&gt;&lt;strong&gt;resolution&lt;/strong&gt;
                set to &lt;em&gt;fixed&lt;/em&gt;
            &lt;/li&gt;
          &lt;/ul&gt;
        &lt;p&gt;
Yes, this is working.
&lt;/p&gt;
      </description>
      <category>Ticket</category>
    </item>
 </channel>
</rss>