Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding certificate to a Web Service from a string
Message
From
22/08/2012 20:38:55
 
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:
01551114
Views:
62
>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.

What I received was a plain ASCII file by email stating that this is a certificate, but one that they handle on their end (the server side). So, instead of letting the server validates, they do it with their code. This is probably why I received an ASCII file. Maybe I am missing something here. But, I also believe regular IIS certificatew are also ASCII file. Aren't they?

The field in the database is Varchar(MAX) presently.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform