Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding certificate to a Web Service from a string
Message
De
22/08/2012 20:38:55
 
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01550969
Message ID:
01551114
Vues:
64
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform