News for hackers. Stuff that matters.
Re:My new favorite vim/tmux bug (2014) by 0xff00ffee on Wednesday March 04, 2020 @12:54PM (#22485971)
My favorite HTTPS bug:

Websites prove their identity via certificates. Firefox does not trust this site because it uses a certificate that is not valid for www.daniellesucher.com.

Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT

View Certificate

---

Followed by: "Site not found"

Re:My new favorite vim/tmux bug (2014) by q3k on Wednesday March 04, 2020 @12:59PM (#22486021)
Just because it serves HTTPS on port :443 doesn't mean you should be using it. 'HTTPS Everywhere' style plugins are a broken concept.
Re:My new favorite vim/tmux bug (2014) by ivanbakel on Wednesday March 04, 2020 @01:15PM (#22486193)
In what way are they a broken concept? What justification is there for serving HTTPS in a way users can't expect to consume?
Re:My new favorite vim/tmux bug (2014) by q3k on Wednesday March 04, 2020 @01:38PM (#22486455)
> In what way are they a broken concept?

Because it's blindly following an inadequate heuristic, and not gracefully degrading if it fails - instead, you get comments like these blaming the author. Even though the author never wanted you to use HTTPS in the first place.

> What justification is there for serving HTTPS in a way users can't expect to consume?

Plenty of technical reasons (eg. what the sibling comments mentioned), but most importantly: there's no Internet/Web standard that I'm aware of which would prohibit me from doing so.

Re:My new favorite vim/tmux bug (2014) by tych0 on Wednesday March 04, 2020 @01:17PM (#22486221)
If you don't serve the same content on :80 and :443.

For example, you might be running a Tor relay node which would serve the node directory list on :443 to help people bypass firewalls, but also be using it as a useful and legitimate web server in order to prevent organizations from blocking it wholesale.

Re:My new favorite vim/tmux bug (2014) by Lex-2008 on Wednesday March 04, 2020 @01:37PM (#22486440)
Somebody might prefer using http for public stuff (reading blog posts), https for private (editing them).
Re:My new favorite vim/tmux bug (2014) by zoonosis on Wednesday March 04, 2020 @03:41PM (#22487833)
HTTPS Everywhere works based on rules as to which sites support https. It does not blindly redirect every request to port 443.
Re:My new favorite vim/tmux bug (2014) by 0xff00ffee on Wednesday March 04, 2020 @01:42PM (#22486496)
cool. i like fried cheese, too.
Re:My new favorite vim/tmux bug (2014) by q3k on Wednesday March 04, 2020 @01:44PM (#22486524)
But the author was following convention: serving HTTP on traffic :80, and linking to that explicitly. It's you, the user, who for some reason decided to switch to a different protocol on a different port, and expected it to work even though there was no guarantee or indication that it would.
Re:My new favorite vim/tmux bug (2014) by asudosandwich on Wednesday March 04, 2020 @02:17PM (#22486926)
Could be a new hobby for the author. Like https://xkcd.com/148/
Re:My new favorite vim/tmux bug (2014) by Spivak on Wednesday March 04, 2020 @01:52PM (#22486623)
There isn't a HTTPS version of the site so you get dropped into the default vhost for their hosting provider, DreamHost.

DreamHost could automatically issue LE certs for their customers but that's not how they do things and don't enable it without customer approval.

It is impossible for DreamHost to not give you an error in this case. You connected directly to port 443 with a name that they don't have a certificate for. They could just close the connection but I don't think that would be an improvement on the situation.

Re:My new favorite vim/tmux bug (2014) by 0xff00ffee on Wednesday March 04, 2020 @03:20PM (#22487612)
EDIT: Ok then, looks like default port conventions don't really mean anything. Sorry I brought it up.