EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Can't set certificate serial number in VB

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
Posted: 09/06/2006 16:54:13
by Eric Twose (Basic support level)
Joined: 09/06/2006
Posts: 5


I’m trying to create an X509 certificate in Visual Basic using the activeX dll.

The certificate is created using:

Private certificate As IelCertificateX4 (X3 causes VB to crash after running out of stack space)

Set certificate = CreateObject(“pkibbox.ElCertificateX”).

Everything works except for one thing: I can’t set the serial number. It’s always binary “00”.

certificate.serialnumber = 1
certificate.serialnumber = str2byte(“123”)
Set certificate.serialnumber = str2byte(“123”)

All return the error “Object required” (after successfully converting string to byte array). Yet certificate is a valid object.

Any help gratefully received. Thanks in advance.
Posted: 09/07/2006 00:14:08
by Eugene Mayevski (EldoS Corp.)

This is a known bug with no workaround, unfortunately. We will fix the issue in SecureBlackbox 5.

Sincerely yours
Eugene Mayevski
Posted: 09/07/2006 05:34:33
by Eric Twose (Basic support level)
Joined: 09/06/2006
Posts: 5

Thanks for the quick response.

Outlook Express and Internet Explorer don't seem to mind if the Root CA certificate and digital ID / SSL server certificate serial numbers are both "00", but Firefox won't accept an SSL certificate with the same sn as another issued by the same CA (ie by me).

Best wishes,
Posted: 09/07/2006 13:16:23
by Eugene Mayevski (EldoS Corp.)

As said, this will be fixed in next beta of SBB 5.

Sincerely yours
Eugene Mayevski



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