Skip to content

Commit

Permalink
fix: update code
Browse files Browse the repository at this point in the history
Signed-off-by: Junjie Gao <[email protected]>
  • Loading branch information
JeyJeyGao committed Aug 16, 2023
1 parent ff98f25 commit 80bc5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Notation.Plugin.AzureKeyVault/KeyVault/KeyVaultClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public async Task<X509Certificate2Collection> GetCertificateChainAsync()
switch (contentType)
{
case "application/x-pkcs12":
// If the secret is a PKCS12 file, decode the base64 encoding
// macOS doesn't support ephemeral key set
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
{
chain.Import(Convert.FromBase64String(secretValue), "", X509KeyStorageFlags.DefaultKeySet);
Expand Down

0 comments on commit 80bc5c1

Please sign in to comment.