SSL followed by CRSF "Forbidden" lockout on a clean install

Status
Not open for further replies.

Stilez

Guru
Joined
Apr 8, 2016
Messages
529
I've got myself into a bit of a mess, I think I need help to get out of it.

I just set up a clean install of 9.10-2-U1, and tried to configure HTTPS (haven't done this before as I'm not very confident at certificate/CA setup, but the docs seemed straightforward). I created a CA, then a certificate, then configured HTTPS using that certificate.

Immediate result, failed to connect, which I fixed using sqlite3 /data/freenas-v1.db "update system_settings set stg_guiprotocol = 'http';"

But instead now I'm getting 403-forbidden/CSRF across all browsers as well (including browsers never used with this setup). I've tried clearing cookies/saves web cache (no use), and also tried to restart the web services (service nginx restart + service django restart), but that also failed - nginx reported a fatal error creating/finding var/.../error.log and /access.log (I haven't done anything outside the GUI that could cause this).

Any help to get around this, and what I might have done wrong in the first place?
 
Last edited:

Stilez

Guru
Joined
Apr 8, 2016
Messages
529
Thanks... now that's odd.

Restarting services by itself didn't work. But after a 2nd reboot, it did, and has been fine since.

Ditto, the certificate setup I did, caused a lockout. But after manually changing the settings in the sqlite db back to http and rebooting, when I changed the GUI back to https it worked fine, again without any other settings change.

How weird.... any idea how to explain it?
 
Status
Not open for further replies.
Top