How to Recover from an Invalid Certificate

macmuchmore

Explorer
Joined
Feb 4, 2020
Messages
58
I am an idiot - I enabled WebGUI HTTP –> HTTPSRedirect without setting up a proper certificate and now I cannot access my GUI. I found on the web the correct procedure to resolve this in FreeNAS 9.10, but I wanted to ask if the same procedure will work for TrueNAS Core 12. The procedure entails disabling HTTPS from the Shell with the command:
Code:
sqlite3 /data/freenas-v1.db “update system_settings set stg_guiprotocol = ‘http’;”

Will this same code work in TrueNAS Core 12?
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
What's wrong with your cert? Can you not force your browser to trust it? Can you change your computer's clock so the cert becomes valid?
 

macmuchmore

Explorer
Joined
Feb 4, 2020
Messages
58
I did not create a certificate - I thought the internal one would work to enable https access to my gui. Unfortunately this is not the case. This is the error I receive in my browser:
certificate error.JPG
 

macmuchmore

Explorer
Joined
Feb 4, 2020
Messages
58
Let me qualify that I have 2 Freenas servers and I think the browser is referring to the certificate from my other server. That server is allowing https connections.
 

seanm

Guru
Joined
Jun 11, 2018
Messages
570
If you click "Learn More..." is there no option to "accept anyway" or similar?
 

macmuchmore

Explorer
Joined
Feb 4, 2020
Messages
58
If you click "Learn More..." is there no option to "accept anyway" or similar?
Unfortunately there is not. Strangely, I went to a different computer (a mac) and was able to connect and fix the issue. I guess the browser in windows 10 isn't as forgiving. Anyways, this is resolved!
 
Top