EldoS | Feel safer!

Software components for data protection, secure storage and transfer


Posted: 08/11/2014 14:29:08
by Daniel Schaer (Standard support level)
Joined: 02/16/2012
Posts: 44


(SBB 11.0.242 and Delphi XE5)

When I read TElX509Certificate.SerialNumber, it returns a geroglific; is that what is expected?.

Best regards,

Posted: 08/11/2014 14:38:41
by Eugene Mayevski (Team)

Not sure that I understand what "geroglific" is but anyway ...

Serial number is a *binary* value, not a text. It represents a huge integer value.

Example: 32-bit integer represents an integer value and occupies 4 bytes in memory. 64-bit integer occupies 8 bytes of memory. Serial number is an integer value that may occupy any number of bytes of memory.

To show the serial number to the user you can use SBUtils.BinaryToString function which will BASE16-encode the binary value.

Sincerely yours
Eugene Mayevski
Posted: 08/11/2014 15:05:43
by Daniel Schaer (Standard support level)
Joined: 02/16/2012
Posts: 44

Hi Eugene; On previous SBB version I was using WideStrToStr. It does not cause a compiler error, but it raises an exception at runtime. Now I changed to BinaryToString and I get a large Base16 value. Thank you!.




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