Queries the information about a specified SSL client certificate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DescribeSslVpnClientCert |
get |
*SslVpnClientCert
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the SSL client certificate to query. You can call the DescribeRegions operation to query region IDs. |
cn-hangzhou |
| SslVpnClientCertId |
string |
Yes |
The ID of the SSL client certificate to query. |
vsc-bp17r58rjf5r1gjyr**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Status |
string |
The status of the SSL client certificate. Valid values:
|
normal |
| CreateTime |
integer |
The timestamp when the SSL client certificate was created. Unit: milliseconds. The timestamp is in the Unix format, which represents the total number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC, to the time when the SSL client certificate was created. |
1552550980000 |
| ClientKey |
string |
The client key. |
-----BEGIN RSA PRIVATE KEY----- MIIEpAI****ZzNFhuM/za== -----END RSA PRIVATE KEY----- |
| RegionId |
string |
The region ID of the SSL client certificate. |
cn-hangzhou |
| ClientConfig |
string |
The client configuration. |
client dev tun proto tcp remote 120.XX.XX.33 1194 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert vsc-bp15t7****.crt key vsc-bp15t7****.key cipher AES-128-CBC ;comp-lzo verb 4 |
| EndTime |
integer |
The timestamp when the SSL client certificate expires. Unit: milliseconds. The timestamp is in the Unix format, which represents the total number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC, to the time when the SSL client certificate expires. |
1647158980000 |
| RequestId |
string |
The request ID. |
5BE01CD7-5A50-472D-AC14-CA181C5C03BE |
| ClientCert |
string |
The client certificate. |
-----BEGIN CERTIFICATE----- MIIDR****A== -----END CERTIFICATE----- |
| CaCert |
string |
The CA certificate. |
-----BEGIN CERTIFICATE----- MIID****r4w= -----END CERTIFICATE----- |
| SslVpnClientCertId |
string |
The ID of the SSL client certificate. |
vsc-bp13k5mp4tg8v3z9b**** |
| SslVpnServerId |
string |
The SSL server ID. |
vss-bp155e9yclsg1xgq4**** |
| Name |
string |
The name of the SSL client certificate. |
nametest |
| ResourceGroupId |
string |
The resource group ID of the SSL client certificate. The SSL client certificate belongs to the same resource group as its associated SSL server. You can call the ListResourceGroups operation to query resource group information. |
rg-acfmzs372yg**** |
Examples
Success response
JSON format
{
"Status": "normal",
"CreateTime": 1552550980000,
"ClientKey": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAI****ZzNFhuM/za==\n-----END RSA PRIVATE KEY-----",
"RegionId": "cn-hangzhou",
"ClientConfig": "client\ndev tun\nproto tcp\nremote 120.XX.XX.33 1194\nresolv-retry infinite\nnobind\npersist-key\npersist-tun\nca ca.crt\ncert vsc-bp15t7****.crt\nkey vsc-bp15t7****.key\ncipher AES-128-CBC\n;comp-lzo\nverb 4",
"EndTime": 1647158980000,
"RequestId": "5BE01CD7-5A50-472D-AC14-CA181C5C03BE",
"ClientCert": "-----BEGIN CERTIFICATE-----\nMIIDR****A==\n-----END CERTIFICATE-----",
"CaCert": "-----BEGIN CERTIFICATE-----\nMIID****r4w=\n-----END CERTIFICATE-----",
"SslVpnClientCertId": "vsc-bp13k5mp4tg8v3z9b****",
"SslVpnServerId": "vss-bp155e9yclsg1xgq4****",
"Name": "nametest",
"ResourceGroupId": "rg-acfmzs372yg****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidInstanceId.NotFound | The InstanceId is not found. | The InstanceId is not found. |
| 403 | Forbbiden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | |
| 403 | Forbidden | User not authorized to operate on the specified resource. | You do not have the permissions to manage the specified resource. Apply for the permissions and try again. |
| 404 | InvalidRegionId.NotFound | The specified region is not found during access authentication. | The specified area is not found during authentication. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.