Is there a reliable command in Ubutu to check for the secure boot key and its expiration date?
Check its various options
The 'Validity' field in the output will tell you the expiration date.
mokutil --kek | egrep '(Not |Subject:|^[^ ])'
is the magic incantation if you really want to use mokutil