>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 ?