title: How to generate SSL using a batch file
body: <p>
  <strong>What i am trying to accomplish</strong></p>
  
  <p>I want to create and install a pfx certificate using a batch file</p>
  
  
  
  <pre><code>@echo off
  cls
  
  set exepath=C:\OpenSSL\bin\openssl.exe
  
  %exepath% genrsa -out "%1".key %2
  %exepath% req -new -key "%1".key -out "%1".csr -config %OPENSSL_CONF%
  %exepath% x509 -req -days %3 -in "%1".csr -signkey "%1".key -out "%1".crt
  
  //code causing the error
  %exepath% pkcs12 -export -in "%1".crt -inkey "%1".key -out ""_pkcs12.pfx -
  name "Universe Self-Signed SSL" 
  
  del "%1.key"
  del "%1.csr"
  </code></pre>
  
  
  
  <p><strong>Expected Result</strong>
  I am expecting a pfx file generates and installed</p>
  
  <p>
  <strong>Actual Result</strong></p>
  
  <p>What i am actually getting is</p>
  
  <p>Error opening input file .crt
  .crt: No such file or directory
  ;</p>