public byte[] GetCerData()
 {
     return(DerEncodedCertificate.Export(X509ContentType.Cert));
 }
 public byte[] GetPfxData()
 {
     return(DerEncodedCertificate.Export(X509ContentType.Pfx, UserPassword));
 }