openssl rsa -in private.key -text -noout
A linha superior da saída exibirá o tamanho da chave.
Por exemplo:
Private-Key: (2048 bit)
Para ver o tamanho da chave de um certificado:
$ openssl x509 -in public.pem -text -noout | grep "RSA Public Key"
RSA Public Key: (2048 bit)