shellinabox 2.21+b1
The version above has the issue in Debian 11, after confirming that the .pem is valid and contains the private and public key, and permissions are valid, I would still get this error.
I then tried the same .pem in Debian 12 with shellinabox 2.21+b2 and didn't encounter the error.
shellinabox is either error prone or the process of packaging or compiling has broken something (I wonder if the Debian 11 maybe didn't have SSL support compiled in somehow?).
So if you get this error, perhaps try a different OS or compiling it yourself and see if the error goes away.
shellinabox, ssl, valid, certificate, var, lib, pem, permissions, format, debian, confirming, contains, didn, encounter, prone, packaging, compiling, compiled, os,