EldoS | Feel safer!

Software components for data protection, secure storage and transfer

XaDES X-L

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#11057
Posted: 09/15/2009 04:19:32
by Dmytro Bogatskyy (Team)

Please check if your method "Certificado" loads a certificate correctly.
I attached the sample application that works ok with the latest SecureBlackbox version (Rename the attached file to zip).


[ Download ]
#11058
Posted: 09/15/2009 05:24:37
by Datadec Online (Basic support level)
Joined: 09/09/2009
Posts: 29

It works succesfully!. The method "Certificado" is loading correctly the certificate but the error was that it looks for a certificate in a wrong store for cert3. I was looking for certificate in store.SystemStores.Text = "ROOT" instead of store.SystemStores.Text = "CA"

Regards,
Javier Gutiérrez
#11061
Posted: 09/15/2009 08:45:06
by Datadec Online (Basic support level)
Joined: 09/09/2009
Posts: 29

I am reviewing the example at: http://www.eldos.com/security/articles/4583.php in order to generate CertificateValues and RevocationValues.

I don't understand how to obtain BufPKI from TElOCSPResponse object.
#11062
Posted: 09/15/2009 09:01:15
by Dmytro Bogatskyy (Team)

Quote
I don't understand how to obtain BufPKI from TElOCSPResponse object.

It is a mistake in the article, it should be OCSPResponseBuf.
#11063
Posted: 09/15/2009 09:15:27
by Datadec Online (Basic support level)
Joined: 09/09/2009
Posts: 29

Is the same to set PKIData.Data to OCSPResponseBuf or set to OCSPResponse.Certificates.Certificates(0).CertificateBinary?
#11064
Posted: 09/15/2009 09:33:27
by Datadec Online (Basic support level)
Joined: 09/09/2009
Posts: 29

I answer myself, the size from both are not equal. Is ther any other form of knowing the response size without having to save it to a buffer?

If not, we need to do this:
Dim OCSPResponseBuf As Byte()

'request to OCSP server
OCSPResponse = OCSPRequest()

'save without buffer in order to know the size
OCSPResponse.Save(Nothing, 0, Size)

'set the size of buffer
SBUtils.Unit.SetLength(OCSPResponseBuf, Size)

'save to buffer with the correct size
OCSPResponse.Save(OCSPResponseBuf, 0, Size)
#11069
Posted: 09/15/2009 12:59:38
by Dmytro Bogatskyy (Team)

Quote
Is ther any other form of knowing the response size without having to save it to a buffer?

Unfortunately, no. This is the only way at the moment
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

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