HOW TO CREATE A FULL-CHAIN PFX FROM YOUR SSL FILES

HOW TO CREATE A FULL-CHAIN PFX FROM YOUR FILES

You have:

  • backoffice_sbmcp1_co_in.crt → Server certificate

  • backoffice_sbmcp1_co_in.ca-bundle → Intermediate + Root certificates

  • backoffice_sbmcp1_co_in.p7b → Certificate chain (can also be used to import intermediates)

The easiest correct method is:


METHOD 1: Use MMC to import chain + export correct PFX

STEP 1 — Open MMC

  1. Press Win + R → type mmc → Enter

  2. Go to File → Add/Remove Snap-in

  3. Add Certificates (Computer account)

  4. Expand:


STEP 2 — Import certificates properly

2A — Import the server certificate (.crt)

Right-click Personal → Certificates → All Tasks → Import → select:

  • backoffice_sbmcp1_co_in.crt

Finish the wizard.


2B — Import the CA bundle (Root + Intermediate)

You must import the CA bundle into two locations:

→ Import into "Intermediate Certification Authorities"

Right-click:

Import:

  • backoffice_sbmcp1_co_in.ca-bundle

→ Import into "Trusted Root Certification Authorities"

Right-click:

Import the same ca-bundle.


STEP 3 — Export a NEW PFX containing the full chain

Go back to:

Find your certificate → right-click → All tasks → Export Choose:

  • Yes, export the private key

  • Include all certificates in the certification path (IMPORTANT)

  • Set password

  • Save as new_fullchain.pfx


METHOD 2: Use OpenSSL (if needed)

If you want to build the full chain manually:

Then convert to PFX:

(Only works if you still have the private key!)


FINAL STEP — Import full chain PFX into IIS

  1. Open IIS Manager

  2. Go to Server Certificates

  3. Click Import

  4. Choose new_fullchain.pfx

  5. Go to Bindings for your site

  6. Select HTTPS → Edit → Choose the newly imported certificate

  7. Restart site / IIS:


Why your API was failing

Your first PFX was created from IIS, which only exported: ✔ server certificate ✘ NOT intermediates ✘ NOT root

So the API client saw an incomplete chain → “unknown authority”.

Last updated

Was this helpful?