Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
135 changes: 135 additions & 0 deletions src/chrome/content/rules/BME.hu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!--
This file contains a ruleset for the websites of
Budapest University of Technology and science.

This is not an official list, and probably not comprehensive!

This is a university domain with many different sites and
maintainter teams. Lots of the sites are sending incomplete
certificate chains. But, all the sites are using the same
intermediate certificate, so the misconfigured sites are
"just works" because the browser has the missing certs cached.

By default, we should not enable SSL on sites with incomplete cert chains.
But because in this case, those sites usually work, we include a second
ruleset (see BME.hu_incomplete.xml) with the misconfigured sites.
The users can turn that on if they want.

Feel free to add or move sites to the correct list,
but do not include them in both.

This is the list for sites with valid ssl cert chains.
-->
<ruleset name="BME">
<!-- BME.hu EV -->
<target host="bme.hu" />
<target host="www.bme.hu" />
<target host="net.bme.hu" />
<target host="www.net.bme.hu" />
<target host="login.bme.hu" />
<target host="www.login.bme.hu" />
<!-- Neptun + KTH -->
<target host="kth.bme.hu" />
<target host="www.kth.bme.hu" />
<target host="frame.neptun.bme.hu" />
<target host="neptun.bme.hu" />
<target host="www.neptun.bme.hu" />
<!-- Epitesz kar -->
<target host="epitesz.bme.hu" />
<target host="www.epitesz.bme.hu" />
<target host="caadence.bme.hu" />
<target host="www.caadence.bme.hu" />
<target host="core.epitesz.bme.hu" />
<!-- Villamosmernoki kar -->
<target host="www.vik.bme.hu" />
<target host="vik.bme.hu" /> <!-- !!! -->
<target host="admin.vik.bme.hu" />
<target host="portal.vik.bme.hu" />
<!-- Schonherz -->
<target host="kszk.sch.bme.hu" />
<target host="vir.sch.bme.hu" />
<target host="bss.sch.bme.hu" />
<target host="lists.sch.bme.hu" />
<target host="kepzes.sch.bme.hu" />
<target host="printer.sch.bme.hu" />
<target host="wiki.sch.bme.hu" />
<target host="home.sch.bme.hu" />
<!-- <target host="spot.sch.bme.hu" /> -->
<target host="uszoda.sch.bme.hu" />
<!-- Epitomernoki -->
<!-- <target host="epito.bme.hu" /> -->
<target host="www.epito.bme.hu" />
<!-- Filozofia -->
<target host="filozofia.bme.hu" />
<target host="www.filozofia.bme.hu" />
<!-- Tartoszerkezetek -->
<!-- <target host="me.bme.hu" /> -->
<target host="www.me.bme.hu" />
<!-- Kozlekkar -->
<target host="kozlekedes.bme.hu" />
<target host="www.kozlekedes.bme.hu" />
<!-- Gyartastudomany -->
<target host="manuf.bme.hu" />
<target host="www.manuf.bme.hu" />
<!-- Tavkozles es Mediainformatika -->
<target host="tmit.bme.hu" /> <!-- !!! -->
<target host="www.tmit.bme.hu" />
<!-- Vegyes es Biomernoki -->
<target host="ch.bme.hu" />
<target host="www.ch.bme.hu" />
<!-- Wigner Jeno szakkolegium -->
<target host="wjsz.bme.hu" />
<!-- Simonyi Karoly szakkolegium -->
<target host="simonyi.bme.hu" />
<target host="www.simonyi.bme.hu" />
<!-- Automatizalasi tanszek -->
<target host="aut.bme.hu" />
<target host="www.aut.bme.hu" />
<!-- Logisztika tanszek -->
<target host="logisztika.bme.hu" />
<target host="www.logisztika.bme.hu" />
<!-- Halozati rendszerek tanszek -->
<!-- <target host="hit.bme.hu" /> -->
<target host="www.hit.bme.hu" />
<!-- Bercsenyi kollegium -->
<target host="bercsenyi.bme.hu" />
<target host="www.bercsenyi.bme.hu" /> <!-- !!! -->
<target host="depo.bercsenyi.bme.hu" />
<!-- Atomfizika tanszek -->
<!-- <target host="fat.bme.hu" /> -->
<target host="www.fat.bme.hu" />
<!-- Épületgépészeti tanszék -->
<target host="epget.bme.hu" />
<target host="www.epget.bme.hu" />
<!-- Karman Todor kollegium -->
<target host="ktk.bme.hu" />
<target host="ghk.ktk.bme.hu" /> <!-- !!! -->
<target host="support.ktk.bme.hu" />
<target host="webmail.ktk.bme.hu" />
<target host="lists.ktk.bme.hu" />
<target host="kolireg.ktk.bme.hu" />
<!-- ?? -->
<target host="www.kontrolling.bme.hu" />
<target host="kontrolling.bme.hu" />
<target host="mad.eik.bme.hu" />
<target host="cubesat.bme.hu" />
<target host="decor.eik.bme.hu" />
<target host="felveteli.mesterek.bme.hu" />
<target host="pp.bme.hu" />
<target host="pp.omikk.bme.hu" />
<target host="esn.bme.hu" />
<target host="www.esn.bme.hu" />

<!-- Probably, there are many more sites in the bme.hu domain -->

<!-- Workaround https://tmit.bme.hu cert error -->
<rule from="^https?://tmit\.bme\.hu/"
to="https://www.tmit.bme.hu/"/>

<!-- Hop directly to https NEPTUN -->
<rule from="^http://(www\.)?neptun\.bme\.hu/"
to="https://www.kth.bme.hu/neptun/"/>

<rule from="^http:"
to="https:" />
</ruleset>
36 changes: 36 additions & 0 deletions src/chrome/content/rules/BME.hu_incomplete.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!--
This file contains a ruleset for the websites of
Budapest University of Technology and science.

This is NOT a standalone ruleset.

Please see BME.hu.xml before editing this file!

-->
<ruleset name="BME (incomplete)" default_off="missing certificate chain">
<!-- This ruleset is only for misconfigured sites. See BME.xml -->

<!-- Merestechnika -->
<target host="www.mit.bme.hu" />
<target host="mit.bme.hu" /> <!-- !!! -->
<target host="inf.mit.bme.hu" />
<target host="svn.inf.mit.bme.hu" />
<target host="git.inf.mit.bme.hu" />
<target host="trac.inf.mit.bme.hu" />
<!-- Tetenyi uti kollegium -->
<target host="teteny.bme.hu" />
<target host="www.teteny.bme.hu" />
<target host="uszoda.teteny.bme.hu" />
<target host="tir.teteny.bme.hu" />
<target host="ihfs.teteny.bme.hu" />
<!-- Szamitastudomany tanszek -->
<target host="cs.bme.hu" />
<target host="www.cs.bme.hu" />

<!-- Workaround https://mit.bme.hu cert error -->
<rule from="^https?://mit\.bme\.hu/"
to="https://www.mit.bme.hu/"/>

<rule from="^http:"
to="https:"/>
</ruleset>