OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: tz-mbc on March 08, 2023, 11:16:42 AM

Title: Locked myself out from admin UI with wrong certificate
Post by: tz-mbc on March 08, 2023, 11:16:42 AM
Is there a cli way of changing which cert is used for the admin UI?
I seem to have locked myself out by accidentally selecting the wrong cert. Browser runs into timeout.
System" - "Settings" - "Administration". The Listbox under "SSL certificate"

Title: Re: Locked myself out from admin UI with wrong certificate
Post by: Amr on March 08, 2023, 12:56:00 PM
QuoteIs there a cli way of changing which cert is used for the admin UI?
From the CLI chose the second option (Set interface IP) then choose LAN, follow the steps at the end it'll ask you if you want to revert back to HTTP and then if you want to regenerate a new self-signed cert choose either.
Title: Re: Locked myself out from admin UI with wrong certificate
Post by: tz-mbc on March 08, 2023, 01:18:22 PM
Great! Thanks a lot.
I ended up applying a backup in the meantime but this might come in handy in the future.