On Friday, 31 May 2019 at 11:09:07 UTC, KnightMare wrote:
The reason is that if I understand the logic of Base64, it's
that each character stores 6 bits. My private key .pem has 49
lines of 64 characters worth of Base64, though the sat line
isn't full. Anyway, this is data worth of over 18000 bits. The
RSA key is supposed to be 4096 bits, so this can't be correct.
What am I missing?
PEM is a X.509 certificate (whose structure is defined using
ASN.1), encoded using the ASN.1 DER (distinguished encoding
rules), then run through Base64 encoding and stuck between
plain-text anchor lines (BEGIN CERTIFICATE and END CERTIFICATE).
Ouch. I quess I have to translate the file into something that
doesn't contain any certification cruft I don't use. Back to
reading OpenSSL manual...
Thanks for the info.