Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development | Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
Author | Forum: PowerTCP Web Enterprise for ActiveX Topic: Problem with Certificates |
Heffer42 From: Berlin, Germany Posts: 5 Member Since: 11/18/05 |
posted February 24, 2006 6:47 AM I am trying to use the .Load method from the CertificateStore Object in VB6: Dim value As Variant Dim Store As New CertificateStore ... value = Store.Load(CertFileName, Password) ... I get always a Compiler-Error: Function or variable expected. What could be the problem ? Is there an alternative solution/function to get certificates from a database instead of the file system (the database should hold the content of the certificate file) ? |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 24, 2006 7:13 AM Yes. The Online help contains several examples of using the control in the way that you describe. All of the sample apps provide working examples as well. Please review these two resources and if you are still having a problem, let me know exactly what you tried and the error that you received. |
Heffer42 From: Berlin, Germany Posts: 5 Member Since: 11/18/05 |
posted February 27, 2006 4:41 AM I fixed my error, but i still have no idea to get a certificate from a database (same data as a pfx-file) in the certificate store (like the .Load method gets a pfx-file from disk). Can i use the .CreateCert Method ? Then i have to fill the parameter Name, Usage and so on, but i only have a binary certificate-content like a pfx-file. |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 27, 2006 9:09 AM I'm not sure that I totally understand what you are asking. Are you saying that you want to get a certificate from the database (the list of certificates that you see when choosing them in IIS or IE)? If so, then you would use the CertificateStore but instead of calling Load, you would set the StoreLocation and call Refresh: Dim Store As New CertificateStore Store.Location = locationCurrentUser Store.Refresh Dim Cert For Each Cert In Store.Certificates Debug.Print Cert.SerialNumber Next Does that help? |
Heffer42 From: Berlin, Germany Posts: 5 Member Since: 11/18/05 |
posted February 27, 2006 9:28 AM Sorry, No. The content of a certificate pfx-file is stored in a (Oracle) DB-Blob. Like the .Load method i am looking for a solution that stores this content in the certificate store. ie. - get data from db in vb6 variable - load vb6 variable into cert store (like .load "pfx-file from filesystem" "password" instead .load "pfx-content from vb6 var" "password") |
Tony Priest From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted February 28, 2006 9:21 AM I would just get the data from the blob, write it to a pfx file, then load the pfx file with our CertificateStore. |
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums |
This site is powered by PowerTCP WebServer for ActiveX |