Permalink
Browse files

apply ordering rules since openssl wont do it for us

  • Loading branch information...
emonti committed Sep 14, 2012
1 parent fab54b1 commit 29d296135162b7626ee108cf9c354f87b583cff0
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/certificate_authority/distinguished_name.rb
@@ -27,12 +27,12 @@ def to_x509_name
# NB: the capitalization in the strings counts
name = OpenSSL::X509::Name.new
name.add_entry("CN", common_name)
name.add_entry("O", organization) unless organization.blank?
name.add_entry("OU", organizational_unit) unless organizational_unit.blank?
name.add_entry("ST", state) unless state.blank?
name.add_entry("L", locality) unless locality.blank?
name.add_entry("C", country) unless country.blank?
name.add_entry("L", locality) unless locality.blank?
name.add_entry("ST", state) unless state.blank?
name.add_entry("OU", organizational_unit) unless organizational_unit.blank?
name.add_entry("O", organization) unless organization.blank?
name.add_entry("CN", common_name)
name
end

0 comments on commit 29d2961

Please sign in to comment.