Got it

Signature Mismatch Reported on Clients

127 0 0 0 0

Hi team, here's a new case.


Problem Symptom

All basic services are unavailable, and signature mismatch is reported on clients.



Problem Diagnosis

  1. Check the signature calculation method used by a client.

    Check whether the format of StringToSign calculated by the client is correct.An incorrect StringToSign will be returned when the signature calculation method is incorrect or the bucket name is incorrectly resolved by a virtual host. Compare the incorrect StringToSign returned on the server with the one calculated by the client.2_en-us_image_0156112716.png

  2. Check whether the access key ID (AK) and secret access key (SK) are correct.

    View the logs to check whether the AK used by clients is the same and whether the AK is expired.



Causes

The signature calculated by a client must be the same as that calculated by the server. Otherwise, the authentication will fail.

  1. Signature calculation rules

  • V2 authentication:

    StringToSign = HTTP-Verb + "\n" + Content-MD5 + "\n" + Content-Type + "\n" + x-obs-date + "\n" + User-defined header fields + "/bucketName/URI"

    All user-defined header fields that need to be signed are organized in alphabetical order and separated by "\n".

  • V4 authentication:

    StringToSign = "AWS4-HMAC-SHA256" + "\n" + TimeStampISO8601Format + "\n" + <Scope> + "\n" + Hex(SHA256Hash(<CanonicalRequest>))

Signature function (using the SK to encrypt StringToSign)2_en-us_image_0156112717.png



Solution

Ensure that the clients and server use the same signature calculation method or check whether the AK and SK configurations are correct.



Check After Recovery

Check whether services can run properly.



Suggestion and Summary

Locate the fault by performing the preceding steps.

Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.