title: SSL ASN1 Encoding routines and x509 certificate routine errors
body: <p>I'm completely new to anything Secure Socket Layer related up until yesterday evening and today.  I need to get a self-signed certificate to proceed with an app registration process so that I can implement OAuth in an app I'm writint.  I went through a nice tutorial about how to generate certificates <a href="https://help.ubuntu.com/community/OpenSSL" rel="noreferrer">here</a>.  I'm an ubuntu user, if you didn't click the link to figure that out.  I've been trying to generate a self-signed 1024 bit RSA key encoded x.509  certificate in PEM format.  After setting up the configuration and doing everything as is on the tutorial (of course with the exception of specifying the environment-related data to my own environment).  The commands to generate a new certificate and key after going through the configuration are:</p>
  
  <p>forces SSL to look for configuration file in alternate location (the server configuration file):</p>
  
  <pre><code>export OPENSSL_CONF=~/myCA/exampleserver.cnf
  </code></pre>
  
  <p>Generate the certificate and key:</p>
  
  <pre><code>openssl req -newkey rsa:1024 -keyout tempkey.pem -keyform PEM -out tempreq.pem -outform     PEM
  </code></pre>
  
  <p>Following those two commands the following is displayed:</p>
  
  <pre><code>Generating a 1024 bit RSA private key
  ...++++++
  ...............++++++
  writing new private key to 'tempkey.pem'
  Enter PEM pass phrase:
  Verifying - Enter PEM pass phrase:
  -----
  </code></pre>
  
  <p>I enter my pass phrase and the error I continually get is:</p>
  
  <pre><code>problems making Certificate Request
  3074111688:error:0D06407A:asn1 encoding routines:a2d_ASN1_OBJECT:first num too      large:a_object.c:109:
  3074111688:error:0B083077:x509 certificate    routines:X509_NAME_ENTRY_create_by_txt:invalid field name:x509name.c:285:name=organizationUnitName
  </code></pre>