Solved

How to check the keysize of private/public key?

Posted on 2011-02-20
8
544 Views
Last Modified: 2012-05-11
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!
0
Comment
Question by:beer9
  • 3
  • 3
  • 2
8 Comments
 
LVL 5

Expert Comment

by:chqshaitan
ID: 34939432
what package did you create the key with?
0
 

Author Comment

by:beer9
ID: 34940660
I am not sure.. But I have public/private key pair but I think it was openssl
0
 
LVL 5

Assisted Solution

by:chqshaitan
chqshaitan earned 250 total points
ID: 34940956
0
 
LVL 33

Expert Comment

by:Dave Howe
ID: 34949438
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)
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 33

Expert Comment

by:Dave Howe
ID: 34949443
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.
0
 

Author Comment

by:beer9
ID: 34987047
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

0
 
LVL 33

Accepted Solution

by:
Dave Howe earned 250 total points
ID: 34991871
They are effectively the same.

an rsa key consists of two parts, a public exponent (usually 65537 for most ssl certs) and a modulus (which is what is usually considered "keysize" as it is the product of the secretly generated primes that form the secret key)
0
 

Author Closing Comment

by:beer9
ID: 35036347
Thank you! :-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

So you need a certificate so you can offer SSL encryption.  But which one should you get?  There are so many choices out there! Here is a generic overview of the main types of SSL certificates sold by the majority of commercial Certification Auth…
#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now