Description
It might be an idea to leave a note about this on the page. It might save somebody a lot of grief.
Import-PfxCertificate imports works fine with IIS, but other programs might have issues.
e.g. The Norwegian service Altinn requires that the certificate is imported before use and I can't configure the service if the certificate was imported with Import-PfxCertificate . Somehow it appears that using Import-PfxCertificate introduces some subtle difference that causes the import of the .cer public key to fail at Altinn.
BTW I've seen on StackOverflow that the following might be an alternative to Import-PfxCertificate :
certutil -f -p Some_password -importpfx "\ad\somepath\certificate.p12"
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e0fb050a-c1ce-ae8d-caea-418ba5891daf
- Version Independent ID: f236cf2b-1cd1-f5d1-85be-9ea29bd23b16
- Content: Import-PfxCertificate (pki)
- Content Source: docset/winserver2019-ps/pki/Import-PfxCertificate.md
- Product: w10
- Technology: windows
- GitHub Login: @JasonGerend
- Microsoft Alias: jgerend