title: OpenSSL and error in reading openssl.conf file
body: <p>I am running windows xp 32bit</p>
  <p>I just downloaded Openssl from the following URL and installed it.
  <a href="http://www.slproweb.com/products/Win32OpenSSL.html" rel="nofollow noreferrer">http://www.slproweb.com/products/Win32OpenSSL.html</a></p>
  <p>and then I tried to create a self signed certificate by using the following command</p>
  <pre><code>openssl req -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
  </code></pre>
  <p>then it started giving the following error</p>
  <pre class="lang-none prettyprint-override"><code>Unable to load config info from /usr/local/ssl/openssl.cnf
  </code></pre>
  <p>After some googling, I changed the above command to</p>
  <pre><code>openssl req -config C:\OpenSSL\bin\openssl.conf -x509 -days 365 -newkey rsa:1024 -keyout hostkey.pem -nodes -out hostcert.pem
  </code></pre>
  <p>But now I get the following error in the command prompt</p>
  <pre class="lang-none prettyprint-override"><code>error on line -1 of C:\OpenSSL\bin\openssl.conf
  4220:error:02001002:system library:fopen:No such file or
  directory:.\crypto\bio\bss_file.c:126:fopen('C:\OpenSSL\bin\openssl.conf','rb') 
  4220:error:2006D080:BIO routines:BIO_new_file:no such file:.\crypto\bio\bss_file.c:129: 
  4220:error:0E078072:configuration file routines:DEF_LOAD:no such file:.\crypto\conf\conf_def.c:197:
  </code></pre>