static Java.Security.Cert.X509Certificate ConvertCertificate(Java.Security.Cert.CertificateFactory factory, byte[] certificateData)
 {
     return factory.GenerateCertificate (new System.IO.MemoryStream (certificateData))
         .JavaCast<Java.Security.Cert.X509Certificate>();
 }