EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Japanese characters/unicode in Cert Subject name

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
Posted: 09/19/2006 12:48:22
by rsm  (Basic support level)
Joined: 04/18/2006
Posts: 14


I am using SBUtils.Unit.StrToUTF8(subjectStr) to convert subject string to bye array before setting RDN value for a cert. How ever its not working for Japanese subject name (probably in Unicode).

Any suggestions on how to fix this?

P.S. - We are customers of SBB and really happy with it. :)


from the sample code:

private void setRDNProperty(TElRelativeDistinguishedName rdn,
byte[] OID, string Value)
System.Text.Encoding = Value.en

byte[] formattedValue;
if (Value.Length > 0)
formattedValue = SBUtils.Unit.StrToUTF8(Value);
rdn.set_OIDs(rdn.Count - 1, OID);
rdn.set_Values(rdn.Count - 1, formattedValue);
Posted: 09/19/2006 17:35:42
by Ken Ivanov (EldoS Corp.)

Please also set the TElX509Certificate.UseUTF8 property to true and check if it solves the problem.
Posted: 09/21/2006 17:32:26
by rsm  (Basic support level)
Joined: 04/18/2006
Posts: 14

This fixed it. Thanks!




Topic viewed 2286 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!