Problem description
The specified encryption type is not supported for server-side encryption.
Causes
The encryption type specified in the server-side encryption request is not supported. Object Storage Service (OSS) supports only AES256, SM4, and KMS for server-side encryption.
Examples
For example, you initiate the PutBucketEncryption
request:
PUT /?encryption HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<ServerSideEncryptionRule>
<ApplyServerSideEncryptionByDefault>
<SSEAlgorithm>DES</SSEAlgorithm>
<KMSMasterKeyID></KMSMasterKeyID>
</ApplyServerSideEncryptionByDefault>
</ServerSideEncryptionRule>
The error is returned for the sample request because SSEAlgorithm
is set to DES
, instead of one of the following supported encryption types: AES256, SM4, and KMS.
Solutions
Set the SSEAlgorithm
field in the request to one of the following values: AES256, SM4, and KMS. For more information about fields in the PutBucketEncryption request, see PutBucketEncryption.