Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding certificate to a Web Service from a string
Message
 
To
22/08/2012 11:06:24
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01550969
Message ID:
01551101
Views:
76
This message has been marked as a message which has helped to the initial question of the thread.
Are you sure the value in the DB is a string? If it's a certificate it should be an Image field and return byte[] (or a stream) that you can use as input to the cert constructor.

Certificate data is always binary, so if it's a string you'd have to turn it back into its raw binary form using the Encode class.

+++ Rick ---

>>Where did the string come from ?
>
>I do a select and it goes into a datarow such as:
>
>loRow("CertificateFieldHere")
>
>Then, from this, I would like to be able to pass it directly to the X509Certificate.CreateFromCertFile() method. The goal is then to avoid dumping into the disk and pass a file.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform