Skip to content

Commit 91858b0

Browse files
committed
Try making cert older for linux
1 parent efcd7f5 commit 91858b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Security/Authentication/test/CertificateTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -966,8 +966,8 @@ static Certificates()
966966
SelfSignedExpired = MakeCert(
967967
"CN=Expired Self Signed,OU=dev,DC=idunno-dev,DC=org",
968968
eku: null,
969-
now.AddYears(-1),
970-
now.AddDays(-1));
969+
now.AddYears(-2),
970+
now.AddYears(-1));
971971

972972
SelfSignedNotYetValid = MakeCert(
973973
"CN=Not Valid Yet Self Signed,OU=dev,DC=idunno-dev,DC=org",
@@ -999,7 +999,7 @@ private static X509Certificate2 MakeCert(
999999
DateTimeOffset notBefore,
10001000
DateTimeOffset notAfter)
10011001
{
1002-
using (RSA key = RSA.Create(2048))
1002+
using (var key = RSA.Create(2048))
10031003
{
10041004
CertificateRequest request = new CertificateRequest(
10051005
subjectName,

0 commit comments

Comments
 (0)