By now, even remote villages on uncharted islands in the Pacific know that the U.S. is in the midst of a protracted partial government shutdown. It’s having real impacts on the lives of Federal government workers but they aren’t the only ones. Much of the interaction Federal agencies have with the populace takes place online and the gateway to most of these services/information is a web site.
There are Federal standards that require U.S. government web sites to use SSL/TLS certificates and those certificates have something in common with, say, a loaf of bread you buy at the store: they expire. In all but the best of orgs — or we zany folks who use L e t ‘ s E n c r y p t and further propel internet denizens into a false sense of safety & privacy — renewing certificates involves manual labor/human intervention. For a good chunk of U.S. Federal agencies, those particular humans aren’t around. If a site’s SSL certificate expires and isn’t re-issued, it causes browsers to do funny things, like this:
Now, some of these sites are configured improperly in many ways, including them serving pages on both http
and https
(vs redirecting to https
immediately upon receiving an http
connection). But, browsers like Chrome will generally try https
first and scare you into not viewing the site.
But, how big a problem could this really be? We can find out with a fairly diminutive R script that:
-
grabs a list of Federal agency domains (thanks to the GSA)
-
tries to make a SSL/TLS connection (via the
openssl
package) to the apex domain orwww.
prefixed apex domain -
find the expiration date for the cert
-
do some simple date math
I’ve commented the script below pretty well so I’ll refrain from further blathering:
1 |
|
Now, lets make strings into proper dates, count only the dates starting with the date of the shutdown to the end of 2019 (b/c the reckless human at the helm is borderline insane enough to do that) and plot the timeline:
1 |
|
Now, I’m unwarrantedly optimistic that this debacle could be over by the end of January. How many certs (by agency) could go bad by then?
1 |
|
Ugh.
FIN
Not every agency is fully shutdown and not all workers in charge of cert renewals are furloughed (or being forced to work without pay). But, this one other area shows the possible unintended consequences of making rash, partisan decisions (something both Democrats & Republicans excel at).
You can find the contiguous R code at 2018-01-10-shutdown-certpocalypse.R and definitely try to explore the contents of those certificates.
Related