Importing a pkcs12 to windows server 2016?

Mateusz Dobrzański 21 Reputation points
2021-08-18T09:56:36.917+00:00

Hi everyone!

I got a problem importing a pkcs12 cert to my windows server 2016.
I generated the cert using java keytool, but when I trying to import a newly generated cert I got the message "The password you entered is incorrect". It is weird because I copy-paste the password, also when I trying to import this certificate to other windows (e.g. to Windows 10) everything works fine.
Where I should find any clues?

Regards,
Mat

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,409 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,377 questions
0 comments No comments
{count} votes

Accepted answer
  1. Gary Nebbett 5,721 Reputation points
    2021-08-18T13:33:28.437+00:00

    Hello Mat,

    For each of your PKCS #12 files, you could try the following: issue the command certutil -asn <filename> | findstr /i "pb aes des sha" (replacing "<filename>" with the name of the PKCS #12 file).

    If the output starts like:

    | | | | | ; 1.2.840.113549.1.12.1.3 szOID_PKCS_12_pbeWithSHA1And3KeyTripleDES

    then it should be possible to import the PKCS #12 file into Windows 2016.

    If the output starts like:

    | | | | | ; 1.2.840.113549.1.5.13 szOID_PKCS_5_PBES2
    | | | | | | ; 1.2.840.113549.1.5.12 szOID_PKCS_5_PBKDF2
    | | | | | ; 2.16.840.1.101.3.4.1.42 aes256

    or similar, then the PKCS #12 file probably cannot be imported into Windows 2016 using the built-in Windows 2016 tools. You will have to recreate the PKCS #12 file using TripleDES and SHA1.

    Gary

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Gary Nebbett 5,721 Reputation points
    2021-08-18T10:36:39.733+00:00

    Hello Mat,

    The error message might be "misleading". The problem is probably the cryptographic algorithms used by the PKCS #12 file. The file that you have might be using algorithms that were not supported nn Windows 2016.

    Gary