private void GetCertificate() { byte[] pfxData = EmbeddedResource.GetResource("ChromeCast.Device.SamDel4321.pfx"); cert = new X509Certificate2(pfxData, "SamDel4321", X509KeyStorageFlags.EphemeralKeySet); }