KeyVaultSigning 1.0.10
dotnet add package KeyVaultSigning --version 1.0.10
NuGet\Install-Package KeyVaultSigning -Version 1.0.10
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KeyVaultSigning" Version="1.0.10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KeyVaultSigning --version 1.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KeyVaultSigning, 1.0.10"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install KeyVaultSigning as a Cake Addin #addin nuget:?package=KeyVaultSigning&version=1.0.10 // Install KeyVaultSigning as a Cake Tool #tool nuget:?package=KeyVaultSigning&version=1.0.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Azure KeyVault signing
This component will calculate SHA-hash for your message and then sign that with Azure KeyVault.
Pre-conditions:
- Install Azure CLI:
powershell Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
- Create an Azure Key Vault: https://azure.microsoft.com/en-gb/services/key-vault/
- Add a certificate in the Certificates-tab of the key vault.
- From Access policies -tab, add a user. Add permissions to Sign -operation. Add permissions to Verify-operation.
- The code is using just
DefaultAzureCredential()
, so you have to have your environmentconfiguration for that correct. In development you may haveto doaz login
. See: https://docs.microsoft.com/en-us/dotnet/api/overview/azure/identity-readme#defaultazurecredential
Then just reference this library and call:
KeyVault.sign "keyvault" "certificateName" "Hello world!"
By default the library uses SHA256 and UTF8, but you can modify that, and change the Azure authentication:
KeyVault.configureAlgorithm <- KeyVault.Algorithms.SHA384
KeyVault.configureEncoding <- System.Text.Encoding.Unicode
let changeDefaultCredentials =
KeyVault.configureAzureCredentials <- fun() ->
Azure.Identity.DefaultAzureCredential (
Azure.Identity.DefaultAzureCredentialOptions (
//ExcludeEnvironmentCredential = true
//,ExcludeManagedIdentityCredential = true
ExcludeSharedTokenCacheCredential = true
,ExcludeVisualStudioCredential = true
//,ExcludeVisualStudioCodeCredential = true
//,ExcludeAzureCliCredential = true
//,ExcludeInteractiveBrowserCredential = true
))
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Azure.Identity (>= 1.11.4)
- Azure.Security.KeyVault.Keys (>= 4.6.0)
- Azure.Security.KeyVault.Secrets (>= 4.6.0)
- FSharp.Core (>= 8.0.200)
-
.NETStandard 2.1
- Azure.Identity (>= 1.11.4)
- Azure.Security.KeyVault.Keys (>= 4.6.0)
- Azure.Security.KeyVault.Secrets (>= 4.6.0)
- FSharp.Core (>= 8.0.200)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on KeyVaultSigning:
Package | Downloads |
---|---|
ClearBank.Net
Unofficial .NET client for ClearBank integration, creating online payments via their API. Bank payment handling automation in United Kingdom. |
GitHub repositories
This package is not used by any popular GitHub repositories.