Wie erstelle ich CSR mit utf8 Betreff in openssl?

Ich versuche, eine Zertifikatsignierungsanforderung mit dem Betreff UTF-8 zu generieren.

$ openssl req  -utf8 -nodes -newkey rsa:2048 -keyout my.private_key.pem -out my.csr.pem -text
Generating a 2048 bit RSA private key
......................................................................................................................................................................+++
......+++
writing new private key to 'my.private_key.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [PL]:
State or Province Name (full name) []:Zażółć gęślą jaźń
problems making Certificate Request
12376:error:0D07A07C:asn1 encoding routines:ASN1_mbstring_ncopy:illegal characters:a_mbstr.c:162:

Die Terminalkodierung ist UTF-8. Bei Verwendung des Befehlszeilenbetreffs tritt das gleiche Problem auf(...) -subj /C=PL/ST=zażółć\ gęślą\ jaźń/O=my-company/CN=ThisIsMeForSure

Wenn ich das überspringe-utf8 Schalter wird die CSR mit allen Nicht-ASCII-Zeichen erzeugt, die durch Hex-Notation ersetzt werden (z. B.ó wird\xC3\xB3). Solcher CSR kann mit PHP nicht richtig gelesen werden (openss_x509_parse) - das Originaló wird als vier Bytes gelesen, die zwei seltsame Zeichen darstellen ...

Was mache ich falsch?

Antworten auf die Frage(3)

Ihre Antwort auf die Frage