title: Error Loading extension section v3_ca [centos7]
body: <p>so I am trying to install elasticsearch on my OpenVZ VPS and as I was following the guide <a href="https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elk-stack-on-centos-7" rel="nofollow noreferrer">here</a></p>
  
  <p>While generating the SSL certificate, I tried both options but I'm hitting a wall now. I looked through internet and it didn't help me.</p>
  
  <p>The Command I used</p>
  
  <pre><code>openssl req -config /etc/pki/tls/openssl.cnf -x509 -days 3650 -batch -nodes -newkey rsa:2048 -keyout private/logstash-forwarder.key -out certs/logstash-forwarder.crt
  </code></pre>
  
  <p>Result I got</p>
  
  <pre><code>Error Loading extension section v3_ca
  140327857534880:error:22097082:X509 V3 routines:DO_EXT_NCONF:unknown extension name:v3_conf.c:124:
  140327857534880:error:22098080:X509 V3 routines:X509V3_EXT_nconf:error in extension:v3_conf.c:93:name=SubjectAltName, value=IP: xx.xx.xxx.xxx
  </code></pre>
  
  <p>One Point to note is that I added</p>
  
  <pre><code>subjectAltName = IP: xx.xx.xxx.xxx
  </code></pre>
  
  <p>As I followed the guide linked above.</p>
  
  <hr>
  
  <p>Any help is appreciated</p>
  
  <p>Regards,</p>
  
  <p>inlifethrill</p>