0018-00000202
Updated at:
Problem description
The specified certificate is in an incorrect format.
Cause
A request to update the certificate for a custom domain name fails because the uploaded certificate is in an incorrect format.
Example problem
When you upload a certificate to update the one for a custom domain name, Object Storage Service (OSS) detects that the public key is in an incorrect format. This causes the request to fail.
POST /?cname&comp=add HTTP/1.1
Date: Thu, 15 May 2014 11:18:32 GMT
Content-Length:556
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<BucketCnameConfiguration>
<Cname>
<Domain>my.img-cname.com</Domain>
<CertificateConfiguration>
<Certificate>bad-certificate<Certificate>
<PrivateKey>my-private-key</PrivateKey>
</CertificateConfiguration>
</Cname>
</BucketCnameConfiguration>Solution
Ensure that the public key and private key in your request are in the correct format.
You can upload the certificate to Alibaba Cloud SSL Certificates Service. Then, select and use the certificate in the OSS console.
References
Is this page helpful?