Dear all: I try to use "openssl genrsa -out 1024.private.key 1024" to generate rsa key pairs. if I remember correctly, 1024 is the size of n, the unit in bits and it will be one of public key paris.
But when I generate the public key by the command,openssl rsa -in 1024.private.key -pubout. I cannot tell what the key value is. "MIGfMA.....FsvJULwIDAQAB" is 216 characters and if 8 bits for one character, it will be 1728 bits. it is far beyond the 1024 bits limitation. so I guess I interpret the value of n in the wrong way. How could I tell the exact key value from the output of "openssl rsa -pubout"? Thanks for your kind help $ openssl genrsa -out 1024.private.key 1024 Generating RSA private key, 1024 bit long modulus .......++++++ .++++++ e is 65537 (0x10001) $ openssl rsa -in 1024.private.key -pubout writing RSA key -----BEGIN PUBLIC KEY----- MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1NeDTvXJ+5hdI8VLeisyi/o7P su049auh3pz1Dpdtil/hKJeXV3TEnIQkPsZc+EHT4McGObqEO7FSl2IzW/vuDftB mbcQoSN/WwqucPbV7WeOeF3es0BzGOoiQ90DiUWhXSFTvp6zU+cWP5fYFdvkbzV6 cwBFV1owwi+FsvJULwIDAQAB -----END PUBLIC KEY----- $ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org