static X509Certificate DecodeCertificate(string s) { byte[] rawdata = Convert.FromBase64String (s); return new X509Certificate (rawdata); }