EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Generate CSR crash (Compact Framework)

Posted: 08/11/2010 12:36:18
by Thomas Kluge (Standard support level)
Joined: 06/18/2010
Posts: 2

This code crashes using Compact Framework on a mobile device WM 6.0x:

   FRequest = new TElCertificateRequest(null);
   FRequest.Subject.Count = 6;
   for (int i = 0; i <= 5; i++) FRequest.Subject.set_Tags(i, SBASN1Tree.Unit.SB_ASN1_PRINTABLESTRING);
   FRequest.Subject.set_OIDs(0, SBUtils.Unit.SB_CERT_OID_COUNTRY);
   FRequest.Subject.set_Values(0, SBUtils.Unit.BytesOfString("DE"));
   FRequest.Subject.set_OIDs(1, SBUtils.Unit.SB_CERT_OID_STATE_OR_PROVINCE);
   FRequest.Subject.set_Values(1, SBUtils.Unit.BytesOfString("*******"));
   FRequest.Subject.set_OIDs(2, SBUtils.Unit.SB_CERT_OID_LOCALITY);
   FRequest.Subject.set_Values(2, SBUtils.Unit.BytesOfString("*******"));
   FRequest.Subject.set_OIDs(3, SBUtils.Unit.SB_CERT_OID_ORGANIZATION);
   FRequest.Subject.set_Values(3, SBUtils.Unit.BytesOfString("*******"));
   FRequest.Subject.set_OIDs(4, SBUtils.Unit.SB_CERT_OID_ORGANIZATION_UNIT);
   FRequest.Subject.set_Values(4, SBUtils.Unit.BytesOfString("***"));
   FRequest.Subject.set_OIDs(5, SBUtils.Unit.SB_CERT_OID_COMMON_NAME);
   FRequest.Subject.set_Values(5, SBUtils.Unit.BytesOfString("************************"));


A strange thing is, that there is no internal exception thrown, but WM error reporting pops up with error code 0xC0000005.
Mysteriously that code works while connected via Mobile Device Center on the same device, formerly ActiveSync.

using: SecureBlackbox.PKI.dll

Posted: 08/11/2010 13:19:49
by Eugene Mayevski (Team)

Thank you for the report.

1) Did you check on emulator as well? If no, please do. As we are only able to check on emulator, it's important to narrow down the problem a bit.
2) What version of .NET CF are you using? WM 6.0 uses .NET CF 2.0 as far as I remember.

Sincerely yours
Eugene Mayevski
Posted: 08/12/2010 06:52:12
by Thomas Kluge (Standard support level)
Joined: 06/18/2010
Posts: 2

I checked this in an emulator image "Windows Mobile 6 Professional VGA Emulator" and .NET CF 3.5. The code works, but needs a huge amount of time. I guess around 45min (in words: forty-five minutes!) with a host processor load of 45%. Using a real device connected in ActiveSync-Debugmode this takes 'only' 2min.




Topic viewed 984 times

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


Back to top

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

Got it!