Beispiel #1
0
 public void HasLifetimeSigningEku_WithoutLifetimeSignerEku_ReturnsFalse()
 {
     using (var certificate = SigningTestUtility.GenerateCertificate("test", generator => { }))
     {
         Assert.Equal(0, GetExtendedKeyUsageCount(certificate));
         Assert.False(CertificateUtility.HasLifetimeSigningEku(certificate));
     }
 }
Beispiel #2
0
 public void HasLifetimeSigningEku_WithLifetimeSignerEku_ReturnsTrue()
 {
     using (var certificate = _fixture.GetLifetimeSigningCertificate())
     {
         Assert.Equal(1, GetExtendedKeyUsageCount(certificate));
         Assert.True(CertificateUtility.HasLifetimeSigningEku(certificate));
     }
 }