beer9
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!
Is is always true that if a private key is of 1024 bit then public key would be also 1024 bit? Thanks!
what package did you create the key with?
ASKER
I am not sure.. But I have public/private key pair but I think it was openssl
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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):
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you! :-)