# 1 Generate CA private keytest-fassets/ca.key||opensslgenrsa-outassets/ca.key4096# 2 Generate CA certificatetest-fassets/ca.crt||opensslreq-x509-new-nodes-keyassets/ca.key-days3650-outassets/ca.crt-subj \"/C=CN/ST=Shanghai/O=toughradius/CN=ToughradiusCA/emailAddress=master@toughstruct.net"# 3 Generate server private keyopensslgenrsa-outassets/server.key2048# 4 Generate a certificate request fileopensslreq-new-keyassets/server.key-outassets/server.csr-subj \"/C=CN/ST=Shanghai/O=toughradius/CN=*.toughstruct.net/emailAddress=master@toughstruct.net"# 5 Generate a server certificate based on the CA's private key and the above certificate request fileopensslx509-req-inassets/server.csr-CAassets/ca.crt-CAkeyassets/ca.key-CAcreateserial-outassets/server.crt-days7300mvassets/server.keyassets/cwmp.tls.keymvassets/server.crtassets/cwmp.tls.crt
It should be noted that the certificate prefix cwmp.tls is fixed, toughradius program will default to /var/toughradius/private/ directory, if there is no certificate file, it will create a default certificate file, default certificate file, CN=*.toughradius.net, May not work in your environment
TR069 Preset template
The description format of presets is the standard YAML format, which can facilitate the use of various data structures. For example, online automatic initialization of new devices can be done using a set of presets
oid Can be set in scripts, factory settings, firmware configuration
enabled Indicates whether to enable this task
delay For download tasks, the CPE can be delayed
onfail If it is defined as cancel, when the task fails, all unexecuted tasks defined by the description file will be canceled; when defined as ignore, unexecuted tasks will continue to be executed
The order of execution is FactoryresetConfig -> FirmwareConfig -> Downloads ->Uploads -> SetParameterValues -> GetParameterNames,
In a set of preset tasks, only some operations can be set, if the preset is executed by the system scheduled task,factoryreset, firmwareconfig will be ignored
If the preset is performed by a scheduled system task (the time policy is set to sys_scheduled), then factoryreset, firmwareconfig are ignored in the set of preset tasks.
# TR069 The default description format is the standard YAML format, which can facilitate the use of various data structures. For example, a set of presets can be used to complete the automatic initialization of new devices online# - oid Can be set in scripts, factory settings, firmware configuration# - enabled Indicates whether to enable this task# - delay For download tasks, the CPE can be delayed# - onfail If it is defined as cancel, when the task fails, all unexecuted tasks defined by the description file will be canceled; when defined as ignore, unexecuted tasks will continue to be executed# The order of execution is FactoryresetConfig -> FirmwareConfig -> Downloads ->Uploads -> SetParameterValues -> GetParameterNames,# If the preset is performed by a scheduled system task (the time policy is set to `sys_scheduled`), then factoryreset, firmwareconfig are ignored in the set of preset tasks.# Factory settings script description, single definitionFactoryResetConfig:oid:"test_factory_reset_cfg"enabled:falsedelay:0onfail:"ignore"# Firmware configuration descriptionFirmwareConfig:oid:"test_firmware_cfg"enabled:falsedelay:0onfail:"ignore"# Regular download script, supports multiple sequential executionDownloads: - oid:"test_download"enabled:truedelay:0onfail:"ignore" - oid:"test_download2"enabled:truedelay:0onfail:"ignore"# Regular upload tasks that support multiple sequential executionsUploads: - filetype:"2 VendorLog File"enabled:falseonfail:"ignore"# Set parameters, send multiple sets of parameters at one timeSetParameterValues: - name:"Device.DeviceInfo.X_MIKROTIK_SystemIdentity"type:"string"value:"TestRos"# Get parameters, support multiple sequential executionGetParameterValues: - "Device.DeviceInfo."