[GH-ISSUE #67] pfx cracking: 8k+ P12/PFX error #8

Closed
opened 2026-10-14 02:49:35 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @jeroen-80 on GitHub (Jul 18, 2012).
Original GitHub issue: https://github.com/openwall/john/issues/67

Hi,

I try to crack P12 and PFX files using pfx2john followed by firing up john. John exits with the following message:

Unable to create PKCS12 object from bio
Success

It seems to have something to do with the input file: the error only occurs when trying to crack a hash that resulted from a P12 of PFX file that's > 8k. The pfx2john output looks just fine.

Cheers,

Jeroen

Originally created by @jeroen-80 on GitHub (Jul 18, 2012). Original GitHub issue: https://github.com/openwall/john/issues/67 Hi, I try to crack P12 and PFX files using pfx2john followed by firing up john. John exits with the following message: Unable to create PKCS12 object from bio : Success It seems to have something to do with the input file: the error only occurs when trying to crack a hash that resulted from a P12 of PFX file that's > 8k. The pfx2john output looks just fine. Cheers, Jeroen
Author
Owner

@kholia commented on GitHub (Jul 18, 2012):

Hi,

Can you please post the exact file length of the P12 file along with partial output from pfx2john?

How did you verify that the output of pfx2john is correct? Do the last hex digits of the hash (output of pfx2john) match the actual P12 file?

Can I create / obtain P12 files similar to yours for testing? If yes, how?

Thanks,
Dhiru

<!-- gh-comment-id:7061696 --> @kholia commented on GitHub (Jul 18, 2012): Hi, Can you please post the exact file length of the P12 file along with partial output from pfx2john? How did you verify that the output of pfx2john is correct? Do the last hex digits of the hash (output of pfx2john) match the actual P12 file? Can I create / obtain P12 files similar to yours for testing? If yes, how? Thanks, Dhiru
Author
Owner

@kholia commented on GitHub (Jul 18, 2012):

Jeroen,

Is there a (sensible) limit to how large P12 files can be? Or can they be of any length?

Thanks,
Dhiru

<!-- gh-comment-id:7062800 --> @kholia commented on GitHub (Jul 18, 2012): Jeroen, Is there a (sensible) limit to how large P12 files can be? Or can they be of any length? Thanks, Dhiru
Author
Owner

@kholia commented on GitHub (Jul 18, 2012):

Jeroen,

I have committed a fix to magnum-jumbo. Can you do "git pull", rebuild john and test again?

Thanks,
Dhiru

<!-- gh-comment-id:7063528 --> @kholia commented on GitHub (Jul 18, 2012): Jeroen, I have committed a fix to magnum-jumbo. Can you do "git pull", rebuild john and test again? Thanks, Dhiru
Author
Owner

@jeroen-80 commented on GitHub (Jul 18, 2012):

halfgenius wrote:

Jeroen,

I have committed a fix to magnum-jumbo. Can you do "git pull", rebuild john
and test again?

Hi Dhiru,

Problem is fixed, thanks!

Cheers,

Jeroen

<!-- gh-comment-id:7063950 --> @jeroen-80 commented on GitHub (Jul 18, 2012): halfgenius wrote: > Jeroen, > > I have committed a fix to magnum-jumbo. Can you do "git pull", rebuild john > and test again? Hi Dhiru, Problem is fixed, thanks! Cheers, Jeroen
Author
Owner

@kholia commented on GitHub (Jul 18, 2012):

Great. For now the file size limit for PFX files is 32KB. Closing the issue.

<!-- gh-comment-id:7064400 --> @kholia commented on GitHub (Jul 18, 2012): Great. For now the file size limit for PFX files is 32KB. Closing the issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#8
No description provided.