title: OpenSSL: How to create a certificate with an empty subject?
body: <p>I need to generate certificate with empty Subject field.
  I have tried to use config:</p>
  
  <pre><code>[ req ]
  default_bits                            = 1024                  # Size of keys
  default_md                              = md5                           
  algorithm
  string_mask                             = nombstr               # permitted characters
  #string_mask                            = pkix          # permitted characters
  distinguished_name                      = req_distinguished_name
  req_extensions                          = v3_req
  
  [ policy_match ]
  commonName              = optional
  countryName             = optional
  emailAddress            = optional
  
  [ req_distinguished_name ]
  # Variable name                         Prompt string
  #-------------------------        ----------------------------------
  0.organizationName                      = Organization Name (company)
  organizationalUnitName                  = Organizational Unit Name (division)
  localityName                            = Locality Name (city, district)
  stateOrProvinceName                     = State or Province Name (full name)
  countryName                             = Country Name (2 letter code)
  commonName                              = Common Name (hostname, IP, or your name)
  0.organizationName_default              = 
  localityName_default                    = 
  stateOrProvinceName_default             = 
  countryName_default                     = 
  emailAddress_default                    = 
  
  [ v3_req ]
  basicConstraints                        = CA:FALSE
  subjectKeyIdentifier                    = hash
  subjectAltName                          = critical,DNS:example3.com
  </code></pre>
  
  <p>But got:</p>
  
  <pre><code>Organization Name (company) []:
  Organizational Unit Name (department, division) []:
  Locality Name (city, district) []:
  State or Province Name (full name) []:
  Country Name (2 letter code) []:
  Common Name (hostname, IP, or your name) []:
  error, no objects specified in config file
  problems making Certificate Request
  </code></pre>
  
  <p>I found the same problem here:
      <a href="https://superuser.com/questions/512673/openssl-how-to-create-a-certificate-with-an-empty-subject-dn">https://superuser.com/questions/512673/openssl-how-to-create-a-certificate-with-an-empty-subject-dn</a></p>
  
  <p>But no solution. When i am typing just enter (empty fields) i got this error:
  error, no objects specified in config file</p>
  
  <p>Could you help ? How to generate CSR with empty Subject name ?</p>
  
  <p>Thanks</p>