openssl / openssl/installer

Failed to extract certificate or private key from pfx file

Open
#23 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
16
Forks
9
PR merge metrics
No merged PRs in 30d

Description

installed hybridCRT msi installer on windows 11 22H2 x64 but declined to install development headers. used identical command line to that used on MacOS, failed to extract certificate or private key correctly from a pfx generated by exporting a wildcard domain SSL certificate from IIS running on windows 2012 server with export-private-key enabled.

d:\tmp>openssl pkcs12 -in c2.pfx -clcerts -nokeys -out syn.crt
Enter Import Password:

Error outputting keys and certificates
640C0000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto\evp\evp_fetch.c:376:Global default library context, Algorithm (RC2-40-CBC : 0), Properties (<null>)
640C0000:error:030000A0:digital envelope routines:EVP_PBE_CipherInit_ex:unknown cipher:crypto\evp\evp_pbe.c:127:RC2-40-CBC

d:\tmp>openssl pkcs12 -in c2.pfx -nocerts -out synenc.key
Enter Import Password:

Enter PEM pass phrase:

Verifying - Enter PEM pass phrase:

Error outputting keys and certificates
2C170000:error:0308010C:digital envelope routines:inner_evp_generic_fetch:unsupported:crypto\evp\evp_fetch.c:376:Global default library context, Algorithm (RC2-40-CBC : 0), Properties (<null>)
2C170000:error:030000A0:digital envelope routines:EVP_PBE_CipherInit_ex:unknown cipher:crypto\evp\evp_pbe.c:127:RC2-40-CBC

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the two openssl pkcs12 commands on Windows 11 22H2 x64 with the reported c2.pfx file, then inspect how the installer exposes support for the RC2-40-CBC algorithm. Done means the certificate and private key can be extracted successfully from this PFX without the reported errors.

Written by the indexing model from the issue text.

Assessment

Domain
cryptography, operating-systems, security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.