Link to home
Start Free TrialLog in
Avatar of beer9
beer9Flag for India

asked on

How to check the keysize of private/public key?

Hello, I have a paired private/public key.. I would like to know what key strength I am using. Whether it is 1024 or 2048 bit, please let me know how can I check it using openssl command.

Is is always true that if a private key is of 1024 bit then public key would be also 1024 bit? Thanks!
Avatar of chqshaitan
chqshaitan
Flag of United Kingdom of Great Britain and Northern Ireland image

what package did you create the key with?
Avatar of beer9

ASKER

I am not sure.. But I have public/private key pair but I think it was openssl
SOLUTION
Avatar of chqshaitan
chqshaitan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
on windows? just look at the certificate in certificate manager and under "public key" it will tell you the key size (firefox offers similar views of the certificate)
note if you have the certificate as a cer file (or .pem) You can just double click it in windows to get the same view.
Avatar of beer9

ASKER

I see information like below as the output of "openssl x509 -in 1.pem -noout -text | less", so does it mean that it is 1024 bit? what is the difference of Modulus and Public key. Are they both same? Thanks!

            Public Key Algorithm: rsaEncryption
            RSA Public Key: (1024 bit)
                Modulus (1024 bit):

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of beer9

ASKER

Thank you! :-)