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 10:26:48
 
 
À
22/08/2012 08:34:07
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:
01550992
Vues:
58
>I need to add a certificate to a Web Service I am using from a string. The following only supports referencing a file:
>
>
>                        ' Add the certificate
>                        loWebService.ClientCertificates.Add(X509Certificate.CreateFromCertFile(lcFileName))
>
>
>Does anyone know if it is possible to add the certificate directly from a string? This is from the X509Certificate namespace.

Not sure what you are asking. ClientCertificates.Add() can only take a X509Certificate as a paremeter and a X509 certificate can only obtained by passing either a filename or a byte[] to the constructor (or by using an Import() overload with the same parameters)

What 'string' are you referring to ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform