How to create CSR with utf8 subject in openssl?

前端 未结 3 1956
醉酒成梦
醉酒成梦 2021-02-07 10:05

I am trying to generate Certificate Signing Request with UTF-8 subject.

$ openssl req  -utf8 -nodes -newkey rsa:2048 -keyout my.private_key.pem -out my.csr.pem          


        
3条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 10:51

    Try using the string_mask option:

    string_mask

    This option masks out the use of certain string types in certain fields. Most users will not need to change this option.

    It can be set to several values default which is also the default option uses PrintableStrings, T61Strings and BMPStrings if the pkix value is used then only PrintableStrings and BMPStrings will be used. This follows the PKIX recommendation in RFC2459. If the utf8only option is used then only UTF8Strings will be used: this is the PKIX recommendation in RFC2459 after 2003. Finally the nombstr option just uses PrintableStrings and T61Strings: certain software has problems with BMPStrings and UTF8Strings: in particular Netscape.

提交回复
热议问题