2021-04-13
22
IDS NXT: Setup IDS NXT rio
7. Go to the directory containing the scripts in the virtual machine:
cd ~/share/customsslcerts
8. Run the script to build the SSL package:
python3 generate_nxt_package.py -b ./myCertificates
10.2 Uploading certificate to camera
To upload the SSL package to the camera, use the IDS NXT REST interface.
curl -X PUT http://
<
ip
>
/network/ssl -u admin:
<
password
>
-T "package.NXT_SSL" -H
"content-type: application/NXT_SSL"
If you want to transfer the SSL package to the camera via HTTPS, you must also pass the
--insecure
parameter.
curl -X PUT https://
<
ip
>
/network/ssl -u admin:
<
password
>
-T "package.NXT_SSL" -H
"content-type: application/NXT_SSL" --insecure
Query active SSL package on the camera
curl -X GET http://
<
ip
>
/network/ssl -u admin:
<
password
>
Show current certificate information
curl https://
<
ip
>
--noproxy "*" --insecure -vvvv
Delete SSL package on the camera
curl -X DELETE http:/
<
ip
>
/network/ssl -u admin:
<
password
>
--noproxy "*"
10.3 Optional: disable HTTP
If you want to disable non-encrypted communication of the camera via HTTP, use the "RestrictHTTP" option of
the IDS NXT REST interface:
curl -X PATCH http://
<
ip
>
/network -u admin:
<
password
>
--data "restricthttp=true"
--noproxy "*"