Creates an SSL client certificate.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
Action | String | Yes | CreateSslVpnClientCert | The operation that you want to perform. Set the value to CreateSslVpnClientCert. |
ClientToken | String | No | 02fb3da4-130e-11e9-8e44-0016e04115b | The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length. Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request. |
RegionId | String | Yes | cn-hangzhou | The region ID of the VPN gateway. You can call the DescribeRegions operation to query the most recent region list. |
SslVpnServerId | String | Yes | vss-m5et0q3iy1qex328w**** | The ID of the SSL-VPN server. |
Name | String | No | SslVpnClientCert1 | The name of the SSL client certificate. The name must be 1 to 100 characters in length and cannot start with |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 606998F0-B94D-48FE-8316-ACA81BB230DA | The request ID. |
Name | String | SslVpnClientCert | The name of the SSL client certificate. |
SslVpnClientCertId | String | vsc-m5euof6s5jy8vs5kd**** | The ID of the SSL client certificate. |
Examples
Sample requests
https://vpc.aliyuncs.com/?Action=CreateSslVpnClientCert
&RegionId=cn-hangzhou
&SslVpnServerId=vss-m5et0q3iy1qex328w****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<CreateSslVpnClientCertResponse>
<RequestId>606998F0-B94D-48FE-8316-ACA81BB230DA</RequestId>
<Name>SslVpnClientCert</Name>
<SslVpnClientCertId>vsc-m5euof6s5jy8vs5kd****</SslVpnClientCertId>
</CreateSslVpnClientCertResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "606998F0-B94D-48FE-8316-ACA81BB230DA",
"Name" : "SslVpnClientCert",
"SslVpnClientCertId" : "vsc-m5euof6s5jy8vs5kd****"
}
Error codes
HttpCode | Error code | Error message | Description |
400 | Resource.QuotaFull | The quota of resource is full | The error message returned because the resource quota is reached. |
400 | VpnGateway.Configuring | The specified service is configuring. | The error message returned because the specified service is being configured. Try again later. |
400 | VpnGateway.FinancialLocked | The specified service is financial locked. | The error message returned because the service is suspended due to overdue payments. Top up your account before you enable the service. |
400 | InvalidName | The name is not valid | The error message returned because the format of the name is invalid. |
403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again. |
403 | Forbidden | User not authorized to operate on the specified resource. | The error message returned because you are unauthorized to perform this operation on the specified resource. Apply for the required permissions and try again. |
404 | InvalidRegionId.NotFound | The specified region is not found during access authentication. | The specified area is not found during authentication. |
For a list of error codes, visit the API Error Center.