theod.gay

Scripts und so

The box of SSL tricks

Validating keys, certs, and requests

First up, the one I use most.
When I deal with manual certificates (as opposed to LE (LetsEncrypt)),
I like to have a directory called like the domain, with the files following the same format.
So for theod.gay, the directory tree would look like:

theod.gay
|- theod.gay.crt
|- theod.gay.key
|- theod.gay.csr

(Remember that having plain keys in your git or IaC is bad.)

Now the command I use sanity-check that the key I generated,
the request (csr) I generated, and the certificate I got back
are actually all compliant with each other, I use the following:

DOM=${PWD##*/};\
echo -n "key: "; openssl rsa -noout -modulus -in $DOM.key | openssl md5;\
echo -n "req: ";openssl req -noout -modulus -in $DOM.csr | openssl md5;\
echo -n "crt: ";openssl x509 -noout -modulus -in $DOM.crt | openssl md5;

The modulus is the public portion of your private key, and is embedded in all
of the openssl files generated from that key.
Since a modulus is often quite long, I pipe it to an md5 function to make it easily comparable.

You can of course also modify this to use wildcards or blobs to find files in the current working directory,
However this has caused me great pain in the past, because I sometimes end up with a $DOM-ca.crt
which will make the script confused and sad.

Cons 2025

Did you know that butterflies are gay?
Anyways, I will be attending the CCCs 'GPN' and 'HACKOVER' events this year.
Please only talk to me if you know me.
Otherwise you can kindly leave me alone, I will be overwhealmed as-is.

blog con irl

GPN22

my trip to GPN22

Trip to the GPN22

I attended the 22nd Gulaschprogrammiernacht.
This was my first ever chaos event, and it kind of gave me the motivation to actually
go and connect with people from my local hackerspace or something.
Nothing super exciting happened (to me), but my absolute highlight was
the "USB 4.0" by MacLemon (maclemon.at).
Watch it here.

linux microsoft surface

Fucking Surface Books

Trials and Tribulations of Surface Books

Currently I am experiencing an issue where the laptop won't shut down all the way.
It's a bit odd. The OS seems to shut down properly, but the System keeps the fan on
and seemingly produces heat as well? I'm not sure why this is yet.

Maybe I should actually install the linux-surface kernel. God damn it.

Can't I just have a Dell or something? This sucks.

Nevermind lmao

whoa