References
TLS protocol configuration
json:tls_protocol
Original definition
# TLS protocol configuration
## Definition
~~~json
{
"isOn": "Whether enabled",
"listen": [
{
"protocol": "Protocol",
"host": "Host address, usually empty",
"portRange": "Port or port range"
},
...
],
"sslPolicyRef": {
"isOn": "Enable the SSL policy",
"sslPolicyId": "SSL policy ID"
}
}
~~~
Create the `SSL policy ID` through `/SSLPolicyService/createSSLPolicy`.
## Examples
### Listen on port 8443
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "tls",
"host": "",
"portRange": "8443"
}
],
"sslPolicyRef": {
"isOn": true,
"sslPolicyId": 123
}
}
~~~
The SSL policy ID `123` is created through `/SSLPolicyService/createSSLPolicy`.
### Listen on ports 8443 and 8543
~~~json
{
"isOn": true,
"listen": [
{
"protocol": "tls",
"portRange": "8443"
},
{
"protocol": "tls",
"portRange": "8543"
}
],
"sslPolicyRef": {
"isOn": true,
"sslPolicyId": 123
}
}
~~~
The SSL policy ID `123` is created through `/SSLPolicyService/createSSLPolicy`.