Updated on 2022-09-01 GMT+08:00

AK/SK Authentication

This section describes how to use AK and SK to sign requests.
  • AK indicates the access key ID. It is a unique identifier associated with a secret access key and is used in conjunction with a secret access key to sign requests cryptographically.
  • SK indicates the secret access key used together with the access key ID to sign requests. AK and SK can be used together to identify a request sender to prevent the request from being modified.

Generating an AK and SK Pair

If an AK/SK pair has already been generated, skip this step. Find the downloaded AK/SK file, which is usually named credentials.csv.

As shown in the following figure, the file contains the username, access key ID, and secret access key.

Figure 1 Content of the credential.csv file
Perform the following procedure to generate an AK/SK pair:
  1. Log in to the management console.
  2. Click the username in the upper right corner and choose My Credentials from the drop-down list.
  1. On the My Credentials page, choose Access Keys.
  2. Click Create Access Key.
  3. Enter the password and verification code, and click OK to download the access key. Keep the access key secure.
Figure 2 Obtaining an access key

Generating a Signature

Generate a signature in the same way as in Developing API Calling Authentication (App). Replace the AppKey with the AK and replace the AppSecret with the SK to complete the signing and request processing.