When working with x509 certificates and a public and private key pair, let's say you generate a private key that is 4096 bits. Is it possible to have a public key that is only 2048 bits then? Or are the public key and private key sizes always the same?
Specifically I'm referring to the output of
openssl x509 -text -noout -in mycert.pem and the field:
Subject Public Key Info: Public Key Algorithm: rsaEncryption RSA Public-Key: (2048 bit)
I believe that the private key is 4096 bit, so I was a little surprised to see 2048 bit here. Could that be correct and a possible combination of key sizes for the public and private keys?
Thanks in advance!