Skip to content

Commit ed3fc9c

Browse files
committed
Try making cert older for linux
1 parent 9d03931 commit ed3fc9c

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
@@ -965,8 +965,8 @@ static Certificates()
965965
SelfSignedExpired = MakeCert(
966966
"CN=Expired Self Signed,OU=dev,DC=idunno-dev,DC=org",
967967
eku: null,
968-
now.AddYears(-1),
969-
now.AddDays(-1));
968+
now.AddYears(-2),
969+
now.AddYears(-1));
970970

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

0 commit comments

Comments
 (0)