I have same problem, follow this conversation but not have any solution.
i unistall openwisp-config-openssl and then install openwisp-config-mbedtls but same results:
Wed Mar 15 13:49:39 2017
daemon.info openwisp: OpenWISP config agent started
Wed Mar 15 13:49:39 2017 daemon.err openwisp: Failed to connect to controller while getting checksum: curl exit code 48
then i run manually curl:
root@LEDE:/etc/config# curl -k
https://132.148.88.35/controller/registerand in the controller server i got:
[pid: 12574|app: 0|req: 237/320] 200.29.159.194 () {36 vars in 443 bytes} [Wed Mar 15 13:49:58 2017] GET /controller/register => generated 0 bytes in 2 msecs (HTTP/1.1 301) 3 headers in 136 bytes (1 switches on )
some other infromation here:
root@LEDE:/etc/config# uci show openwisp
openwisp.http=controller
openwisp.http.url='
https://132.148.88.35/'
openwisp.http.interval='120'
openwisp.http.verify_ssl='0'
openwisp.http.shared_secret='354R$543##'
openwisp.http.consistent_key='1'
openwisp.http.mac_interface='eth0'
openwisp.http.merge_config='1'
openwisp.http.test_config='1'
openwisp.http.test_script='/usr/sbin/mytest'
openwisp.http.uuid='reweterwe'
openwisp.http.key='erwerwerwe'
openwisp.http.unmanaged='system.@led' 'network.loopback' 'network.@switch' 'network.@switch_vlan'
openwisp.http.connect_timeout='15'
openwisp.http.max_time='30'
openwisp.http.capath='/etc/ssl/certs'
root@LEDE:/etc/config# openwisp_config --version
openwisp-config 0.4.5