Hi Vivian,

the mistake in this case is that you installed openwisp-config-nossl, which 
doesn't support HTTPS (no SSL means this), but you are trying to connect to 
the controller via HTTPS (the S stands for Secure, as in SSL/TLS).

Install openwisp-config-openssl on your routers.

Federico


On Monday, February 27, 2017 at 1:14:13 AM UTC+1, Vivian Noronha wrote:
>
> Hello Federico,
>
> I am trying to get the automatic registration running. I have successfully 
> installed ansible-openwisp2 on my localhost.
> my router /etc/config/openwisp is as follows and i have installed 
> openwisp-nossl into it. The shared secret is the same.
> config controller 'http'
>         option url 'https://localhost'
>         option interval '30'
>         option verify_ssl '0'
>         option shared_secret 'xxxxxxxx'
> I get the the following error:
> daemon.err openwisp: Failed to connect to controller during registration: 
> curl exit code 48
>
> 1 How can this be solved? here is the curl url that is sent by the router. 
>
> curl -s --connect-timeout 15 --max-time 30 --capath /etc/ssl/certs -k -i 
> --data 
> secret=xxxxxxxx&name=LEDE&backend=netjsonconfig.OpenWrt&mac_address=C4:6E:1F:54:B9:E7&key=29862949da7398d8c8bdc3e7d697155b
>  
> https://localhost/controller/register/
>
>
> 2 I have also tried using the VM setup even that has the same result. 
>
> Any pointers will be helpful.
>
> BR,
> Vivian 
>
> On Thursday, 23 February 2017 12:07:26 UTC+1, Federico Capoano wrote:
>>
>> Since many people have tried and failed with this thing I added a 
>> dedicated section in the ansible-openwisp2 README:
>>
>> Install OpenWISP2 locally (laptop, desktop pc) 
>> <https://github.com/openwisp/ansible-openwisp2#install-openwisp2-locally-laptop-desktop-pc>
>>
>> If anything is not clear or missing, please let me know.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to