Open mpeylo opened 6 years ago
allow also lower-case field names, e.g., "cn"
also allow permutation (i.e., different order) of fields?
I don't really see the benefit from having lower-case field names - but that's needlessly complicating things, to my understanding would not be in line how upstream OpenSSL is handling things, and would likely require to mess with code in upstream scope.
Could you give examples for the permutation? I wasn't aware that there would be any particular order. Would upstream permit it as you indicate?
Those both things have probably little to do with UTF-8 support ;-)
See also https://tools.ietf.org/html/rfc5280#section-4.1.2.6 for details of the structure and encoding of subject DNs
IRs specifying (e.g.) the following UTF-8 subject names on the command line don't bring the desired result.
-subject "/CN=Martin/O=Test/L=北京" -subject "/CN=Martin/O=Test/L=öäü"
Note:
The "req" app has an "-utf8" switch for enabling similar subject names with UTF-8 characters. The "x509" app includes "-nameopt utf8" for achieving correct displaying of subject names including UTF8 characters.