• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. Developer Guide (PHP SDK)
  4. Quick Start
  5. Creating an AK and SK

Creating an AK and SK

OBS uses AKs and SKs for signature verification to ensure that only authorized accounts can access specific OBS resources. Detailed explanations are as follows:

  • An AK is an Access Key ID on OBS. One AK maps to only one user but one user can have multiple AKs. OBS recognizes users by their AKs.
  • An SK is the Secret Access Key on OBS, which is required as the key to access OBS. You can generate authentication information based on SKs and request header fields. SKs and AKs are in one-to-one mapping.

The procedure is as follows:

  1. Log in to OBS Console.
  2. In the upper right corner of the page, click the username and choose My Credential.
  3. On the My Credential page, click the Access Keys tab, and then click Add Access Key below the displayed access key list.
  4. In the Add Access Key dialog box that is displayed, enter the password and its verification code.
    NOTE:
    • If you have not bound an email address or mobile number, you need to enter only the password.
    • If you have bound an email address and a mobile number, you can select the verification either by email address or mobile number.
  5. Click OK.
  6. In the Download Access Key dialog box that is displayed, click OK to save the access keys to your browser's default download path.
  7. Open the downloaded credentials.csv file to obtain the access keys (AK and SK).
NOTE:
  • Each user can create up to two valid AK/SK pairs.
  • To prevent the AK from being leaked, keep it secure. If you click Cancel in the dialog box, the AKs will not be downloaded, and you cannot download them later. You can re-create an AK if you need to use it.