Ejemplo n.º 1
0
        public void Setup_LoadCert()
        {
            signingCert1 = Cert.LoadFromPfx("Certs/ca1.pfx_testonly_donotuse", "");
            signingCert2 = Cert.LoadFromPfx("Certs/cert1.pfx_testonly_donotuse", "");

            verifyCert1 = signingCert1.RemovePrivateKey();
            verifyCert2 = signingCert2.RemovePrivateKey();

            Assert.True(signingCert1.HasPrivateKey);
            Assert.True(signingCert2.HasPrivateKey);
            Assert.False(verifyCert1.HasPrivateKey);
            Assert.False(verifyCert2.HasPrivateKey);
        }