Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration

Setting Up Secure – Step-by-step guide to Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration, including configuration, deployment,

Useful external reference: Microsoft Learn.

Introduction

Setting Up Secure – To create a secure FTP server using IIS, We will need to :

Useful external reference: Microsoft Learn.

  • A group in the Active Directory for FTP permissions
  • A self-signed certificate
  • The creation of the FTP in IIS
  • Connecting to the FTP using FileZilla

Prerequisites

IIS Feature

  • Add FTP server Rôle
Setting Up Secure screenshot

AD Group

  • I will use an existing group in my LAB: SupportN2
  • I’m adding the authorized users to use the FTP to this group
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot

Self-signed certificate

Setting Up Secure – Creating a self-signed certificate using PowerShell

Useful external reference: Microsoft Learn.

New-SelfSignedCertificate -FriendlyName "Certificat FTP" -DnsName "epmpxe.leblogosd.lan" -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation "Cert:LocalMachineMy" -NotAfter (get-date).AddYears(10)
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot

IIS Configuration

  • In IIS, create your FTP site
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • Specify the folder path
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • We will use port 990 (FTP SSL) with the certificate we created
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • Only our AD group will have read/write connection rights.
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot

Connecting with Filezilla

  • Create a new site in Filezilla (required due to the configuration)
    • With Server Name
    • Protocol => Implicit FTP over TLS => The port will automatically be 990 (If we select Explicit Connection, the port will then be 21, which is not our case) 
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • Force Active mode (only port 990 is open).
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • We can force UTF8, but it’s not mandator
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot
  • During the first FTP connection, a message will indicate that it’s a self-signed certificate. Please confirm.
Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot

virtual directory not visible

Setting Up Secure – Enable “Virtal directories” in FTP Directory Browsing option

Useful external reference: Microsoft Learn.

Setting Up a Secure FTP Server in IIS with SSL with Windows Infrastructure Administration screenshot