Steps to determine if certificate is 128 or 256 bit

IT Guy
IT Guy used Ask the Experts™
on
What are the steps necessary to determine if a certificate is 128 bit or 256 bit?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Dr. KlahnPrincipal Software Engineer

Commented:
What kind of certificate?
Assuming this is a web server certificate and it is installed and configured, then open the site in a browser, then you should open the certificate view dialog. Look at the certificate properties, all the information is there.
IT GuyNetwork Engineer

Author

Commented:
How can I make this determination just by looking at the certificate text in a notepad document?

Is the 256-bit certificate longer than the 128-bit certificate?
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

DevOps Engineer
Distinguished Expert 2018
Commented:
Hi,
Use the following command in linux to see about the certificate details.
there you can see the signature alogorithm and other details,

If you are using windows type mmc in run-> file=> add-snap-in > certificates> localcomputer> import your certifcate> see the details


openssl  x509 -in selfsigned.crt  -noout -text
IT GuyNetwork Engineer

Author

Commented:
Also what websites can you go to where you can paste the certificate contents (that are visible when opening the certificate in a text or notepad file) that will let you know if the certificate is 128-bit or 256-bit? Please provide me with the exact URLs for these websites.
Prabhin MPDevOps Engineer
Distinguished Expert 2018
Commented:
Hi ,
Please find the following URL,
https://www.sslshopper.com/certificate-decoder.html
Prabhin MPDevOps Engineer
Distinguished Expert 2018
Commented:
nociSoftware Engineer
Distinguished Expert 2018
Commented:
openssl x509 -in cert.pem  -text -noout | egrep '(Signature|Key)'

Will tell you the signature hash size & type!  as well as the key sizes.
IT GuyNetwork Engineer

Author

Commented:
Are there any ways of determining if a certificate is 128-bit or 256-bit simply by examining its contents in a notepad document?

Is a 256-bit certificate longer than a 128-bit certificate or are there any other patterns that can be determined by examining the contents of a certificate within a notepad document?
Top Expert 2016
Commented:
if you open a certificate in notepad
you will see
-----BEGIN CERTIFICATE-----
a bunch of apparently junk data
-----End Certificate-----
What is in-between is encoded bits

So there is no method of determining by loading the certificate into notepad
Prabhin MPDevOps Engineer
Distinguished Expert 2018
Commented:
@itguy,

As David said , it not possible to see details of certificate using notepad as it's encoded. You have to use openssl or any other tools to extract the details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial