Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding certificate to a Web Service from a string
Message
 
À
22/08/2012 11:06:24
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:
01551101
Vues:
78
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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform