>>But you still haven't told me what is in the string.......
>
>The string is the certificate, the equivalent of the content of a .cer file.
Then I'd guess it is Base64 ASCII. You could try:
X509Certificate cert = new X509Certificate(Convert.FromBase64String(s));
(C# still I'm afraid...)