anchor.diff:  emailAddress                    = <%= @email %>
   <% end -%>
   
  -<% unless altnames.empty? -%>
  +<% unless @altnames.empty? -%>
   [ req_ext ]
   subjectAltName = "<%= @altnames.collect! {|i| "DNS: #{i}" }.join(', ') -%>"
   <% end %>
  
positive.code: default_keyfile         = privkey.pem
  distinguished_name      = req_distinguished_name
  prompt                  = no
  <% if altnames and not altnames.empty? -%>
  req_extensions          = req_ext
  <% end -%>
  
  
negative.code: # SSLeay example configuration file.
  #
  
  # This definition stops the following lines choking if HOME isn't
  # defined.
  HOME                    = .
  RANDFILE                = $ENV::HOME/.rnd
  
  [ req ]
  