Skip to content

Commit

Permalink
Add EmphemeralKeySet storage flag for test certificates (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolbein authored Dec 9, 2024
1 parent 16ea16d commit a610a72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions KS.Fiks.Maskinporten.Client.Tests/TestHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ public static Dictionary<string, string> RequestContentAsDictionary(HttpRequestM
public static X509Certificate2 Certificate =>
new X509Certificate2(
"alice-virksomhetssertifikat.p12",
"PASSWORD");
"PASSWORD",
X509KeyStorageFlags.EphemeralKeySet);

public static X509Certificate2 CertificateOtherThanUsedForDecode =>
new X509Certificate2(
"bob-virksomhetssertifikat.p12",
"PASSWORD");
"PASSWORD",
X509KeyStorageFlags.EphemeralKeySet);

public static RSA PublicKey => _publicKey;

Expand Down

0 comments on commit a610a72

Please sign in to comment.