获取路由器VPN证书。
提供路由器ID来获取路由器vpn服务证书。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
router | String | 路由器ID | Yes |
platform | String | vpn客户端配置文件适配的平台,有效值是’windows’, ‘linux’, ‘mac’。如果不指定返回全部的配置 | No |
Response Elements
Name | Type | Description |
---|---|---|
action | String | 响应动作 |
client_crt | string | 客户端证书内容 |
client_key | string | 客户端证书私钥内容 |
static_key | string | vpn加密私钥内容 |
ca_cert | string | vpn信任证书内容 |
router_id | string | 路由器ID |
router_id | string | 路由器ID |
mac_conf_sample | string | mac系统样例配置文件内容 |
windows_conf_sample | string | Windows系统样例配置文件内容 |
linux_conf_sample | string | Linux系统样例配置文件内容 |
ret_code | Integer | 执行成功与否,0 表示成功,其他值则为错误代码 |
Example
Example Request:
https://api.qingcloud.com:443/iaas?action=GetVPNCerts
&router_static=rtrs-8e3pgr8r
&COMMON_PARAMS
Example Response:
{
"router_id": "rtr-53sl2lov",
"linux_conf_sample": "*****ommited for security reason",
"ca_cert": "*****ommited for security reason",
"ret_code": 0,
"mac_conf_sample": "# openvpn client mac configuration sample\nclient\ndev tun\nproto udp\nremote *****ommited for security reason****** 1194\nresolv-retry infinite\nnobind\nuser nobody\ngroup nogroup\npersist-key\npersist-tun\nca yunify-ca.crt\ncert rtr-53sl2lov.crt\nkey rtr-53sl2lov.key\ntls-auth rtr-53sl2lov.takey.key 1\n#auth-user-pass\ncipher AES-256-CBC\ncomp-lzo\nmssfix 1400\n",
"windows_conf_sample": "# openvpn client windows configuration sample\r\nclient\r\ndev tun\r\nproto udp\r\nremote *****ommited for security reason****** 1194\r\nresolv-retry infinite\r\nnobind\r\npersist-key\r\npersist-tun\r\nca yunify-ca.crt\r\ncert rtr-53sl2lov.crt\r\nkey rtr-53sl2lov.key\r\ntls-auth rtr-53sl2lov.takey 1\r\n#auth-user-pass\r\ncipher AES-256-CBC\r\ncomp-lzo\r\nmssfix 1400\r\n",
"static_key": "*****ommited for security reason",
"client_crt": "*****ommited for security reason",
"action": "GetVPNCertsResponse",
"client_key": "-----BEGIN PRIVATE KEY-----\n*****ommited for security reason\n-----END PRIVATE KEY-----\n"
}