Uploads a China National Cryptographic Algorithm (SM) certificate for a domain that is added to WAF in CNAME mode.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:CreateSM2Cert |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CertName |
string |
No |
The certificate name. |
test-sm2 |
| EncryptCertificate |
string |
No |
The content of the SM encryption certificate. |
-----BEGIN CERTIFICATE----- *** -----END CERTIFICATE----- |
| EncryptPrivateKey |
string |
No |
The private key content of the SM encryption certificate. |
-----BEGIN PRIVATE KEY----- *** -----END PRIVATE KEY----- |
| SignCertificate |
string |
No |
The signing certificate content of the SM certificate. |
-----BEGIN CERTIFICATE----- *** -----END CERTIFICATE----- |
| SignPrivateKey |
string |
No |
The private key content of the SM signing certificate. |
-----BEGIN PRIVATE KEY----- *** -----END PRIVATE KEY----- |
| InstanceId |
string |
Yes |
Instance ID of the WAF instance. Note
You can call the DescribeInstance operation to query instance ID of the current WAF instance. |
waf_v2_public_cn-*** |
| RegionId |
string |
No |
The region where the WAF instance is deployed. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
D7861F61-5B61-46CE-A47C-*** |
| CertIdentifier |
string |
The certificate ID. |
***-cn-hangzhou |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-46CE-A47C-***",
"CertIdentifier": "***-cn-hangzhou"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.