| ARRIS Enterprises, Inc. Confidential Information |
Receiving HTTPS logHTTPS logging allows a specific STB to send its log file to a specified server via HTTPS messages. When an individual STB is deployed in a NAT network, the logclient program can no longer establish a connection with the STB. Instead, a webserver logging mechanism can be used in this situation if the webserver is properly configured. The SDK contains an example, called The example script runs in a Node.js environment, which is used to receive a log from a remote STB through the HTTPS protocol (for security reasons, HTTP is not supported). Two parameters are used to control the behaviour of the logging on the STB, the receiving servers address:port, and the sending duration. Once set, the log will be sent from that STB to the listening server. Any HTTPS server can be used to receive the log. The provided example On the host PC, the
---logserver dir----serialNumber1--date1.log
| |--date2.log
|-----serialNumber2--date1.log
|--date2.log
The log saving directory can be specified by -d parameter when run the script. For example: $ ./logserver -d /opt/log Both the logserver and the STB need to be provided with HTTPS certificates. Below is an example on how to create a self-signed server certificate using OpenSSL. Please adapt this example to your own environment and requirements.
Public.pem and private.pem need to be in the same folder as the
logserver script, and public.pem needs to be added to kreatv-option-log-http i.e.
A more flexible way is to first generate a CA and add its certificate (root.pem in the example) to the STB using the certificate_file parameter through
The trusted CA should be added to
|