Backup to S3 encrypted bucket fails

Trying take backup to S3, but fails with

BACKUP DATABASE DB1 TO S3 “bucket1/b1”
CONFIG ‘{“region”:“us-west-2”,“x-amz-server-side-encryption”:“AES256”}’
CREDENTIALS ‘{“aws_access_key_id”:“AKIAXXXXXXXXXXX”,“aws_secret_access_key”:“YYYYYTJEE1cDqdq7vJ9rGYYYYYYYYYYY”}’

ERROR 1792 (HY000) at line 1: A disk error was encountered. The BACKUP operation has been cancelled.

We confirmed that, the permissions are correct, as we can copy the files the same bucket using the same user.
It looks like, it has something to with AES256 encryption, the bucket is set to encrypt using AES256. Please help

Using “x-amz-server-side-encryption” isn’t currently supported in the CONFIG section. We’ll make a note of it as a possible feature for a future version.

then how do we backup to encrypted buckets. Is it not supported?
Is there any other option?