Install KMS instance SDK (C#)

Updated at:

The KMS instance SDK for C# lets you perform cryptographic operations and retrieve secret values using keys stored in a KMS instance.

Resources: Source code and releases

Prerequisites

Before you begin, make sure you have:

Install the SDK

Requirements: .NET Framework 5.0 or later, or .NET Standard 2.0 or later.

Using the .NET CLI

Run the following command in your project directory:

dotnet add package AlibabaCloud.Dkms.Gcs.Sdk
Note

Use the latest version of the SDK. For version history, see the open source code repository.

Network requirements

Your application's runtime environment must be able to reach the KMS instance VPC address: <KMS_INSTANCE_ID>.cryptoservice.kms.aliyuncs.com.

ScenarioConfiguration required
Application and KMS instance are in the same region and same VPCNone. They are connected by default.
Application and KMS instance are in the same region but different VPCsAssociate the application's VPC with the KMS instance. See Access a KMS instance from multiple VPCs in the same region.
Application runs in an on-premises data centerConfigure network connectivity to the KMS instance without using domain names. See Application access FAQ.