title: Permission denied when creating a CA in CentOS linux
body: <p>I've followed the <a href="https://www.vagrantup.com/intro/getting-started/index.html" rel="nofollow noreferrer">vagrant getting started guide</a> for installing vagrant and getting CentOS up and running. I now need to create a CA authority (so that I can self sign certs for use with docker - hello-world is failing to pull.) To do this, I am following <a href="https://www.golinuxcloud.com/generate-self-signed-certificate-openssl/" rel="nofollow noreferrer">this document</a> but I am falling foul of the <strong>Create Certificate Authority (CA)</strong> section which says to run this command:</p>
  
  <pre><code>openssl req -new -x509 -key private/mykey.pem -days 365 &gt; mycert.pem
  </code></pre>
  
  <p>I get <code>permission denied</code>, so I tried with <code>sudo</code>:</p>
  
  <pre><code>sudo openssl req -new -x509 -key private/mykey.pem -days 365 &gt; mycert.pem
  </code></pre>
  
  <p>Which also produces <code>permission denied</code>.</p>
  
  <p>Given I am starting up my vagrant-based centos with the standard <code>vagrant up</code> and <code>vagrant ssh</code> commands, what should I do to acquire the requisite permissions in order to run the <code>openssl req</code> command?</p>