title: How do I fix the "unable to find 'distinguised_name' in config problems making Certificate Request" error using OpenSSL?
body: <p>I have no idea what this error is or how to fix it. I am just following these instructions to connect to a VISA API (<a href="https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl" rel="nofollow noreferrer">https://developer.visa.com/pages/working-with-visa-apis/two-way-ssl</a>). I am on the "Configuring Two-Way SSL Keystore Using Your Own CSR" section of instructions #1.</p>
  
  <p>I did try to follow the VISA instructions once, but got errors and restarted from the beginning so that may contribute to the problem. I might already have a CSR.</p>
  
  <p>I have OpenSSL 1.1.1d 10 Sep 2019
  platform: VC-WIN64A</p>
  
  <p>Environment variable SSL not defined
  Environment variable OPENSSL not defined</p>
  
  <p>I tried running this command:  req -new -keyout privateKey.pem -out certreq.csr</p>
  
  <p>It then made me enter a PEM pass phrase. I dont know if this makes a difference, but I did the same command before and it worked.</p>
  
  <p>OpenSSL Version
  <a href="https://i.stack.imgur.com/dheVj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dheVj.jpg" alt="enter image description here"></a></p>
  
  <p>OpenSSL Error
  <a href="https://i.stack.imgur.com/ZrHNG.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZrHNG.jpg" alt="enter image description here"></a></p>