upvote
> but the moment they do an active MITM I don't think a self-signed cert will be very useful

In my experience, it's TOFU (Trust On First Use): once you accept the self-signed certificate the first time, Firefox will store its hash and no longer warn you as long as the certificate doesn't change. An active MITM after that point should still warn about an untrusted certificate, since the certificate would no longer be the same as the stored exception.

(And the same would happen if you initially accepted the self-signed certificate while under an active MITM, and the attack later stops; the only way to avoid a warning would be to have the attack be running continuously since the first use.)

reply
Except browsers periodically rewarn about such certs, and users will accept it. It will not work as a protection in practice.
reply
I've never seen Firefox re-warn about the self-signed certificate of my OpenWRT router, and I've been using the same self-signed certificate for over a year.
reply
How does HTTPS even work in this case? HTTPS relies on a valid SSL cert, which either sign the site is really foo.com But in the case of a router, you have a configurable IP address. Obviously the router can't self-sign a cert that the configindeed lives a whatever address you set
reply
you just blindly trusts the router self-signed cert upon first login, and if you're paranoid enough, add it to your system keychain so subsequent logins can be locally verified.
reply