Can't connect openwrt device to openwisp-controller

Hi all,
I can't connect between openwisp agent and controller. I installed openwisp-config on agent and In /etc/config/openwisp on the device is

/etc/config/openwisp
config controller 'http'
option url 'https://xxx.xx.x.xx'
#option interval '120'
#option management_interval '10'
#option registration_interval '30'
option verify_ssl '0'
option shared_secret ''
#option consistent_key '1'
#option mac_interface 'eth0'
option management_interface 'up0v0'
#option merge_config '1'
#option tags ''
#option test_config '1'
#option test_script '/usr/sbin/mytest'
#option hardware_id_script '/usr/sbin/read_hw_id'
#option hardware_id_key '1'
#option bootup_delay '0'
option uuid 'f4efbb2e-082e-44b4-93fe-9e43cxxxxxxx'
option key 'ed9f7fc488672b601ed827e59xxxxxxx'
# curl options
#option connect_timeout '15'
#option max_time '30'
#option capath '/etc/ssl/certs'
#option cacert '/etc/ssl/certs/ca-certificates.crt'
#option checksum_max_retries '5'
#option checksum_retry_delay '6'
# hooks
#option pre_reload_hook '/usr/sbin/my_pre_reload_hook'
#option post_reload_hook '/usr/sbin/my_post_reload_hook'

i am little bit confused about uuid and key in openwisp controller. i am sharing some command outputs that are we getting ..

:~# /etc/init.d/openwisp_config restart
openwisp: OpenWISP config agent stopping
openwisp: OpenWISP config agent started

:~# logread | grep openwisp
Tue Feb 6 09:24:40 2024 daemon.err openwisp: Failed to connect to controller while getting checksum: curl exit code 28
Tue Feb 6 09:26:55 2024 daemon.err openwisp: Failed to connect to controller while getting checksum: curl exit code 28
Tue Feb 6 09:29:10 2024 daemon.err openwisp: Failed to connect to controller while getting checksum: curl exit code 28
Tue Feb 6 09:31:25 2024 daemon.err openwisp: Failed to connect to controller while getting checksum: curl exit code 28

:~# ps | grep openwisp
7569 root 1148 S /bin/sh /usr/sbin/openwisp_config --url https://172.
7601 root 1104 S grep openwisp

please let me know how can we fix this problem..?
thanks
with kind regards,

appears to be a timeout, is the other end actually answering ?

When this happens there's usually a firewall blocking communication.

You just have to provide the shared secret and the URL of the server. Maybe uncheck "verify SSL" in OpenWISP, advanced if your server have a self-signed certificate.

The device will auto-register, and get the UUID and key automatically, and the shared secret will disappear.

If the URL of your server is on a domain with a RFC1918 IP, take a look here