title: Error opening CA private key on Ubuntu
body: <p>I am trying to create a <strong>self-signed certificate</strong> using OpenSSL on <strong>Ubuntu</strong> 14.04. 
  When I enter the command <code>openssl ca -in tempreq.pem -out server_crt.pem</code>, I get the following error: </p>
  
  <pre><code>Using configuration from /root/myCA/caconfig.cnf  
  **Error opening CA private key** ~/myCA/private/cakey.pem  
  139754719667872:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('~/myCA/private/cakey.pem','r')  
  139754719667872:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:  
  unable to load CA private key
  </code></pre>
  
  <p>I have already verified that <code>nano ~/myCA/private/cakey.pem</code> command opens the <code>cakey.pem</code> file, and that the <em>read</em> permission for this file is enabled. </p>
  
  <p>Any help will be appreciated. Thanks!</p>