Skip to content

Failed to extract certificate or private key from pfx file #23

Description

@barnsta

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions