I've generated an RSA key by this command:
openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048
I exported the key to DER format, which is the binary form. The key is a waaay more than 2k bits. For test, I exported the public key to DER format, which is slightly more than 2k bits.
So the question, what is 2048 bits? How can I get the raw bits from the generated file?
Thanks, Lev