EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Does SecureBlackbox support the language beyond English?

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#6704
Posted: 06/23/2008 03:02:24
by  xu cong
Hi!
I generate CSR, set up Subject into Japanese, but shown on the certificate is not Japanese, I want to know whether SecureBlackbox can support the language beyond English?
Or is my code wrong.

My code:
Code
...
TElCertificateRequest FRequest = new TElCertificateRequest();
string Country = Text1.Value;
FRequest.Subject.set_OIDs(0, SBUtils.Unit.SB_CERT_OID_COUNTRY);
FRequest.Subject.set_Values(0, SBUtils.Unit.StrToUTF8(Country));
...
#6707
Posted: 06/23/2008 04:34:31
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

Hi. What do you mean under "shown on the certificate is not Japanese"?
Country in certificate is set to something different?
#6713
Posted: 06/23/2008 05:59:23
by  xu cong
Example:
Code
...
TElCertificateRequest FRequest = new TElCertificateRequest();
string Country = Text1.Value;
FRequest.Subject.set_OIDs­(0, SBUtils.Unit.SB_CERT_OID_STATE_OR_PROVINCE);
FRequest.Subject.set_Valu­es(0, SBUtils.Unit.StrToUTF8("上海"));
...

But the certificate Subject value is:

#6714
Posted: 06/23/2008 06:07:47
by  xu cong
Sorry, the above reply contains errors.
Example:

But the certificate Subject value is:
#6715
Posted: 06/23/2008 06:13:50
by Mykola Olshevsky (Basic support level)
Joined: 07/07/2005
Posts: 450

It seems, that I get it.
Please, use FRequest.Subject.set_Tags(0, SBASN1.Unit.asn1UTF8String),
because by default all field are stored as PrintableString ASN.1 type.
If it doesn't help, please post your sample certificate here.
And, btw, are you using the latest build (6.0.143)? Because there were some changes with CSR in it.
#6717
Posted: 06/23/2008 21:35:56
by  xu cong
Thanks! ^.^
#6726
Posted: 06/24/2008 06:30:18
by  xu cong
a
Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.

Reply

Statistics

Topic viewed 2204 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!