Serial Key Missing A Number

Posted on
Serial Key Missing A Number Average ratng: 7,3/10 1512 reviews
Active1 year, 11 months ago

I'm trying to get serial number from a X.509 Cert. When i compare the Serial number generated by my code with the actual serial number(on windows), leading zeroes of the actual serial number(of the X509 cert) are missing.

Any suggestions or alternative ways to get the serial number of the x.509 cert in hex with the leading zeroes??

Below is the code segment which I'm currently using:


Find Your Model/Serial Number. SentrySafe is committed to providing you the support you need. To find your model or serial number, identify your safe type from the options below. Lost Your Key or Combination? Select your country below to view possible retrieval methods. Key & Combo Replacement Process US. Key & Combo Replacement Process UK.


1 Answer

BigInteger has a toByteArray() method that re-adds the leading 00s: Simple home budget worksheet.

Now you have several ways to convert the byte array to a hex string:

For example with Apache commons codec:

3,0191 gold badge18 silver badges23 bronze badges

Find Missing Keys

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

Not the answer you're looking for? Browse other questions tagged javax509java-security or ask your own question.

Active7 years, 7 months ago

Possible Duplicate:
How can I reinstall Windows 7 if I lost my installation DVD?

Edit: The answer was to find the Serial number first using a serial number finder utility. The possible duplicate was missing the additional condition that the serial number was missing.

Serial Key Missing A Number

I have Activated Windows 7 on my PC, But lost the CD and Serial number.I need to reinstall Windows 7, I (hope) can borrow a Windows 7 DVD somehow, but how do I get my original serial number, I have the product key as shown in System Properties.

Thanks for any ideas

3641 gold badge4 silver badges20 bronze badges

marked as duplicate by nhinkleJan 16 '12 at 3:39

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

Product Key Finder from Dave Hope is quite good at finding what you're looking for.

8041 gold badge8 silver badges18 bronze badges

Download and install this

The program will list all your serial number in your computer including windows serial.

Graw 2 serial key pc. You can leave your team by the big tree as you snipe all the red diamonds from far away. More will appear as you start firing, but just take your time and you will win.

Another way to do is, if you bought the windows yourself and still have proof of purchase then you can call up microsoft and ask for serial.


Download and run produkey

Once you have the key you should be able to borrow a DVD however if it doesn't work try to get a DVD from the same manufacturer. If you bought it from off a self you will need a DVD also bought off the shelf.

David RemyDavid Remy

Not the answer you're looking for? Browse other questions tagged windows-7 or ask your own question.