Problem description
The server-side encryption type is not supported.
Causes
Object Storage Service (OSS) rejected a PutBucketEncryption request because the SSEAlgorithm field contains an unsupported encryption type.
Supported values: AES256, SM4, KMS.
Examples
The following request is rejected because SSEAlgorithm is set to DES, which OSS does not support:
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>Solutions
Set SSEAlgorithm to one of the supported values: AES256, SM4, or KMS. For details on configuring other request fields, see PutBucketEncryption.