SSL certificate maximum validity is being reduced to 200 days from March 2026. Read more →
Windows Server Advanced ~3 min. read

ADFS and WAP SSL Administration

A technical guide for configuring SSL/TLS certificates for Active Directory Federation Services (ADFS) and Web Application Proxy (WAP) using PowerShell.

ADFS and WAP SSL Administration

Introduction

Active Directory Federation Services (ADFS) provides Single Sign-On (SSO) capabilities across organisations and systems, allowing users to access external resources using their existing Active Directory credentials.

Web Application Proxy (WAP) is a role on the Remote Access server that provides access to internal web applications for external clients, using ADFS for authentication.

Because the certificate must be installed on multiple servers, the most straightforward approach is to use the .PFX format.

You can obtain the certificate either by using our CSR service or by exporting it from the MMC console once it has been installed.

Start by installing the certificate on all servers, including both ADFS and WAP nodes.

Then follow the ADFS Installation steps.

Finally, proceed to WAP Installation.

Exporting the certificate to a .PFX backup

  1. Log in to the server using an administrator account.
  1. Press Windows key + R

Type mmc.exe

Click OK.

Open Mmc

  1. Under the File menu, click Add/Remove Snap-in.

Add Remove Snap In

  1. Select Certificates.

Click Add.

Certificates Add

  1. Select Computer account.

Click Next.

Computer Account

  1. Select Local computer.

Click Finish.

Local Computer

  1. Expand the tree structure until the Certificates folder under Personal is visible and select it.

Right-click the certificate you wish to export.

Select All Tasks.

Click Export.

All Tasks Export Adfs

  1. Select Yes, export the private key.

Click Next.

Export Private Key

  1. Select Personal Information Exchange - PKCS #12 (.PFX).

Click Next.

Export File Format

  1. Tick Password: and enter a password to protect the .PFX file (ensure you store this password securely).

Click Next.

Security Prompt

  1. Select a location and a name for the .PFX file; give it a descriptive name so it is easy to identify.

Click Next.

Click Finish.

Save File Location Adfs

Installing the certificate by importing a .PFX file

  1. Log in to the server using an administrator account.

Save the received file in a convenient location, such as the desktop.

  1. Press Windows key + R

Type mmc.exe

Click OK.

Open Mmc

  1. Under the File menu, click Add/Remove Snap-in.

Add Remove Snap In

  1. Select Certificates.

Click Add.

Certificates Add

  1. Select Computer account.

Click Next.

Computer Account

  1. Select Local computer.

Click Finish.

Local Computer

  1. Expand the tree structure until the Personal folder is visible.

Right-click Personal.

Select All Tasks.

Click Import.

All Tasks Import Server

  1. Click Browse and locate the .PFX file you saved.

Browse Files

  1. Change the file format to Personal Information Exchange (*.pfx;*.p12) in the bottom right corner and select the correct file.

Click Open.

Click Next.

Change Format To Pfx

  1. If the file is password-protected (which is standard), enter the password here.

If you used our CSR service, you will have received the password via SMS.

Click Next.

Password Promt Exportable Key

  1. Select Automatically select the certificate store based on the type of certificate.

Click Next.

Click Finish.

Automatically Select Store Server

Installation on ADFS

  1. Log in to the primary ADFS server using an administrator account.
  1. Open PowerShell as an Administrator.
  1. Run the following command to view all installed certificates:

dir Cert:\LocalMachine\My\

  1. Run the following command to apply the new certificate using its thumbprint:
Set-AdfsSslCertificate -Thumbprint

Set Adfs Certificate

  1. Run the following command to verify that the certificate has been activated correctly:
Get-AdfsSslCertificate
  1. If the ADFS servers are running Windows Server 2016 or later, the primary server will automatically update the secondary nodes. For Server 2012, this process must be repeated on each individual secondary server.

Installation on WAP

  1. Log in to the WAP server using an administrator account.
  1. Open PowerShell as an Administrator.
  1. Run the following command to use the new certificate:
  1. Set-WebApplicationProxySslCertificate -Thumbprint

Set Wap Certificate

  1. Run the following command to verify that the certificate has been activated correctly:
Get-WebApplicationProxySslCertificate
  1. This process must be repeated on all WAP servers in the farm.

Strengthen your TLS security

Use IIS Crypto to easily configure secure TLS protocols and cipher suites on your Windows Server.

IIS Crypto TLS configuration guide

Ready to create a free account?

Create a free account and issue your first certificate in under 10 minutes.