Indeed. Just specifying the key size without telling Certbot which type you want isn't enough.
One could think: "Hey, but if I mention --rsa-key-size on the command line, that would imply using RSA, right?" Well, I guess, but Certbot isn't that smart..
Revoking isn't really necessary unless the private key got leaked.
Certbot changed the default key type to ECDSA with Certbot v2.0.0. And in between 2.0.0 and 2.somewhat there was a bug that it did not detect properly if an already existing certificate was RSA and simply used ECDSA without the user knowing.
The private key is super short 241 bytes! my other key is 1.7K.
I think certbot should be smart to auto detect the type based on the key size parameter if key type wasn't passed. I can't believe nobody thought of that.
Yeah, certbot assumes that if you care about the key type at all, then you'd pass the key type argument. It probably should warn if you pass an RSA key size when you're not using an RSA key, but really it's uncommon that one needs an RSA key nowadays. As you've noticed, ECDSA keys are much smaller.