Skip to content

The IIS Orchestrator treats the certificates bound (actively in use) on a Microsoft Internet Information Server (IIS) as a Keyfactor certificate store. Inventory, Management, and Reenrollment jobs are supported. The orchestrator replaces the IIS orchestrator that ships with Keyfactor Command (which did not support binding.)

Notifications You must be signed in to change notification settings

Keyfactor/iis-orchestrator

Repository files navigation

Windows Certificate Universal Orchestrator Extension

Integration Status: production Release Issues GitHub Downloads (all assets, all releases)

Support Β· Installation Β· License Β· Related Integrations

Overview

The WinCertStore Orchestrator remotely manages certificates in a Windows Server local machine certificate store. Users are able to determine which store they wish to place certificates in by entering the correct store path. For a complete list of local machine cert stores you can execute the PowerShell command:

Get-ChildItem Cert:\LocalMachine

The returned list will contain the actual certificate store name to be used when entering store location.

By default, most certificates are stored in the β€œPersonal” (My) and β€œWeb Hosting” (WebHosting) stores.

This extension implements four job types: Inventory, Management Add/Remove, and Reenrollment.

WinRM is used to remotely manage the certificate stores and IIS bindings. WinRM must be properly configured to allow the orchestrator on the server to manage the certificates. Setting up WinRM is not in the scope of this document.

Note: In version 2.0 of the IIS Orchestrator, the certificate store type has been renamed and additional parameters have been added. Prior to 2.0 the certificate store type was called β€œIISBin” and as of 2.0 it is called β€œIISU”. If you have existing certificate stores of type β€œIISBin”, you have three options:

  1. Leave them as is and continue to manage them with a pre 2.0 IIS Orchestrator Extension. Create the new IISU certificate store type and create any new IIS stores using the new type.
  2. Delete existing IIS stores. Delete the IISBin store type. Create the new IISU store type. Recreate the IIS stores using the new IISU store type.
  3. Convert existing IISBin certificate stores to IISU certificate stores. There is not currently a way to do this via the Keyfactor API, so direct updates to the underlying Keyfactor SQL database is required. A SQL script (IIS-Conversion.sql) is available in the repository to do this. Hosted customers, which do not have access to the underlying database, will need to work Keyfactor support to run the conversion. On-premises customers can run the script themselves, but are strongly encouraged to ensure that a SQL backup is taken prior running the script (and also be confident that they have a tested database restoration process.)

Note: There is an additional (and deprecated) certificate store type of β€œIIS” that ships with the Keyfactor platform. Migration of certificate stores from the β€œIIS” type to either the β€œIISBin” or β€œIISU” types is not currently supported.

Note: If Looking to use GMSA Accounts to run the Service Keyfactor Command 10.2 or greater is required for No Value checkbox to work

The Windows Certificate Universal Orchestrator extension implements 3 Certificate Store Types. Depending on your use case, you may elect to use one, or all of these Certificate Store Types. Descriptions of each are provided below.

Windows Certificate (WinCert)

WinCert

The Windows Certificate Certificate Store Type, known by its short name 'WinCert,' enables the management of certificates within the Windows local machine certificate stores. This store type is a versatile option for general Windows certificate management and supports functionalities including inventory, add, remove, and reenrollment of certificates.

The store type represents the various certificate stores present on a Windows Server. Users can specify these stores by entering the correct store path. To get a complete list of available certificate stores, the PowerShell command Get-ChildItem Cert:\LocalMachine can be executed, providing the actual certificate store names needed for configuration.

Key Features and Considerations

  • Functionality: The WinCert store type supports essential certificate management tasks, such as inventorying existing certificates, adding new certificates, removing old ones, and reenrolling certificates.

  • Caveats: It's important to ensure that the Windows Remote Management (WinRM) is properly configured on the target server. The orchestrator relies on WinRM to perform its tasks, such as manipulating the Windows Certificate Stores. Misconfiguration of WinRM may lead to connection and permission issues.

  • Limitations: Users should be aware that for this store type to function correctly, certain permissions are necessary. While some advanced users successfully use non-administrator accounts with specific permissions, it is officially supported only with Local Administrator permissions. Complexities with interactions between Group Policy, WinRM, User Account Control, and other environmental factors may impede operations if not properly configured.

IIS Bound Certificate (IISU)

IISU

The IIS Bound Certificate Certificate Store Type, identified by its short name 'IISU,' is designed for the management of certificates bound to IIS (Internet Information Services) servers. This store type allows users to automate and streamline the process of adding, removing, and reenrolling certificates for IIS sites, making it significantly easier to manage web server certificates.

Key Features and Representation

The IISU store type represents the IIS servers and their certificate bindings. It specifically caters to managing SSL/TLS certificates tied to IIS websites, allowing bind operations such as specifying site names, IP addresses, ports, and enabling Server Name Indication (SNI). By default, it supports job types like Inventory, Add, Remove, and Reenrollment, thereby offering comprehensive management capabilities for IIS certificates.

Limitations and Areas of Confusion

  • Caveats: It's important to ensure that the Windows Remote Management (WinRM) is properly configured on the target server. The orchestrator relies on WinRM to perform its tasks, such as manipulating the Windows Certificate Stores. Misconfiguration of WinRM may lead to connection and permission issues.

  • Limitations: Users should be aware that for this store type to function correctly, certain permissions are necessary. While some advanced users successfully use non-administrator accounts with specific permissions, it is officially supported only with Local Administrator permissions. Complexities with interactions between Group Policy, WinRM, User Account Control, and other environmental factors may impede operations if not properly configured.

  • Custom Alias and Private Keys: The store type does not support custom aliases for individual entries and requires private keys because IIS certificates without private keys would be invalid.

WinSql (WinSql)

WinSql

The WinSql Certificate Store Type, referred to by its short name 'WinSql,' is designed for the management of certificates used by SQL Server instances. This store type allows users to automate the process of adding, removing, reenrolling, and inventorying certificates associated with SQL Server, thereby simplifying the management of SSL/TLS certificates for database servers.

Caveats and Limitations

  • Caveats: It's important to ensure that the Windows Remote Management (WinRM) is properly configured on the target server. The orchestrator relies on WinRM to perform its tasks, such as manipulating the Windows Certificate Stores. Misconfiguration of WinRM may lead to connection and permission issues.

  • Limitations: Users should be aware that for this store type to function correctly, certain permissions are necessary. While some advanced users successfully use non-administrator accounts with specific permissions, it is officially supported only with Local Administrator permissions. Complexities with interactions between Group Policy, WinRM, User Account Control, and other environmental factors may impede operations if not properly configured.

Compatibility

This integration is compatible with Keyfactor Universal Orchestrator version 10.1 and later.

Support

The Windows Certificate Universal Orchestrator extension is supported by Keyfactor for Keyfactor customers. If you have a support issue, please open a support ticket with your Keyfactor representative. If you have a support issue, please open a support ticket via the Keyfactor Support Portal at https://support.keyfactor.com.

To report a problem or suggest a new feature, use the Issues tab. If you want to contribute actual bug fixes or proposed enhancements, use the Pull requests tab.

Requirements & Prerequisites

Before installing the Windows Certificate Universal Orchestrator extension, we recommend that you install kfutil. Kfutil is a command-line tool that simplifies the process of creating store types, installing extensions, and instantiating certificate stores in Keyfactor Command.

Security and Permission Considerations

From an official support point of view, Local Administrator permissions are required on the target server. Some customers have been successful with using other accounts and granting rights to the underlying certificate and private key stores. Due to complexities with the interactions between Group Policy, WinRM, User Account Control, and other unpredictable customer environmental factors, Keyfactor cannot provide assistance with using accounts other than the local administrator account.

For customers wishing to use something other than the local administrator account, the following information may be helpful:

  • The WinCert extensions (WinCert, IISU, WinSQL) create a WinRM (remote PowerShell) session to the target server in order to manipulate the Windows Certificate Stores, perform binding (in the case of the IISU extension), or to access the registry (in the case of the WinSQL extension).

  • When the WinRM session is created, the certificate store credentials are used if they have been specified, otherwise the WinRM session is created in the context of the Universal Orchestrator (UO) Service account (which potentially could be the network service account, a regular account, or a GMSA account)

  • WinRM needs to be properly set up between the server hosting the UO and the target server. This means that a WinRM client running on the UO server when running in the context of the UO service account needs to be able to create a session on the target server using the configured credentials of the target server and any PowerShell commands running on the remote session need to have appropriate permissions.

  • Even though a given account may be in the administrators group or have administrative privileges on the target system and may be able to execute certificate and binding operations when running locally, the same account may not work when being used via WinRM. User Account Control (UAC) can get in the way and filter out administrative privledges. UAC / WinRM configuration has a LocalAccountTokenFilterPolicy setting that can be adjusted to not filter out administrative privledges for remote users, but enabling this may have other security ramifications.

  • The following list may not be exhaustive, but in general the account (when running under a remote WinRM session) needs permissions to:

    • Instantiate and open a .NET X509Certificates.X509Store object for the target certificate store and be able to read and write both the certificates and related private keys. Note that ACL permissions on the stores and private keys are separate.
    • Use the Import-Certificate, Get-WebSite, Get-WebBinding, and New-WebBinding PowerShell CmdLets.
    • Create and delete temporary files.
    • Execute certreq commands.
    • Access any Cryptographic Service Provider (CSP) referenced in re-enrollment jobs.
    • Read and Write values in the registry (HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server) when performing SQL Server certificate binding.

Create Certificate Store Types

To use the Windows Certificate Universal Orchestrator extension, you must create the Certificate Store Types required for your usecase. This only needs to happen once per Keyfactor Command instance.

The Windows Certificate Universal Orchestrator extension implements 3 Certificate Store Types. Depending on your use case, you may elect to use one, or all of these Certificate Store Types.

Windows Certificate (WinCert)
  • Create WinCert using kfutil:

    # Windows Certificate
    kfutil store-types create WinCert
  • Create WinCert manually in the Command UI:

    Create WinCert manually in the Command UI

    Create a store type called WinCert with the attributes in the tables below:

    Basic Tab

    Attribute Value Description
    Name Windows Certificate Display name for the store type (may be customized)
    Short Name WinCert Short display name for the store type
    Capability WinCert Store type name orchestrator will register with. Check the box to allow entry of value
    Supports Add βœ… Checked Check the box. Indicates that the Store Type supports Management Add
    Supports Remove βœ… Checked Check the box. Indicates that the Store Type supports Management Remove
    Supports Discovery πŸ”² Unchecked Indicates that the Store Type supports Discovery
    Supports Reenrollment βœ… Checked Indicates that the Store Type supports Reenrollment
    Supports Create πŸ”² Unchecked Indicates that the Store Type supports store creation
    Needs Server βœ… Checked Determines if a target server name is required when creating store
    Blueprint Allowed πŸ”² Unchecked Determines if store type may be included in an Orchestrator blueprint
    Uses PowerShell πŸ”² Unchecked Determines if underlying implementation is PowerShell
    Requires Store Password πŸ”² Unchecked Enables users to optionally specify a store password when defining a Certificate Store.
    Supports Entry Password πŸ”² Unchecked Determines if an individual entry within a store can have a password.

    The Basic tab should look like this:

    WinCert Basic Tab

    Advanced Tab

    Attribute Value Description
    Supports Custom Alias Forbidden Determines if an individual entry within a store can have a custom Alias.
    Private Key Handling Optional This determines if Keyfactor can send the private key associated with a certificate to the store. Required because IIS certificates without private keys would be invalid.
    PFX Password Style Default 'Default' - PFX password is randomly generated, 'Custom' - PFX password may be specified when the enrollment job is created (Requires the Allow Custom Password application setting to be enabled.)

    The Advanced tab should look like this:

    WinCert Advanced Tab

    Custom Fields Tab

    Custom fields operate at the certificate store level and are used to control how the orchestrator connects to the remote target server containing the certificate store to be managed. The following custom fields should be added to the store type:

    Name Display Name Description Type Default Value/Options Required
    spnwithport SPN With Port Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations. Bool false πŸ”² Unchecked
    WinRM Protocol WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication. MultipleChoice https,http βœ… Checked
    WinRM Port WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP. String 5986 βœ… Checked
    ServerUsername Server Username Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'. Secret πŸ”² Unchecked
    ServerPassword Server Password Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'. Secret πŸ”² Unchecked
    ServerUseSsl Use SSL Determine whether the server uses SSL or not (This field is automatically created) Bool true βœ… Checked

    The Custom Fields tab should look like this:

    WinCert Custom Fields Tab

    Entry Parameters Tab

    Name Display Name Description Type Default Value Entry has a private key Adding an entry Removing an entry Reenrolling an entry
    ProviderName Crypto Provider Name Name of the Windows cryptographic provider to use during reenrollment jobs when generating and storing the private keys. If not specified, defaults to 'Microsoft Strong Cryptographic Provider'. This value would typically be specified when leveraging a Hardware Security Module (HSM). The specified cryptographic provider must be available on the target server being managed. The list of installed cryptographic providers can be obtained by running 'certutil -csplist' on the target Server. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    SAN SAN String value specifying the Subject Alternative Name (SAN) to be used when performing reenrollment jobs. Format as a list of <san_type>=<san_value> entries separated by ampersands; Example: 'dns=www.example.com&dns=www.example2.com' for multiple SANs. Can be made optional if RFC 2818 is disabled on the CA. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked βœ… Checked

    The Entry Parameters tab should look like this:

    WinCert Entry Parameters Tab

IIS Bound Certificate (IISU)
  • Create IISU using kfutil:

    # IIS Bound Certificate
    kfutil store-types create IISU
  • Create IISU manually in the Command UI:

    Create IISU manually in the Command UI

    Create a store type called IISU with the attributes in the tables below:

    Basic Tab

    Attribute Value Description
    Name IIS Bound Certificate Display name for the store type (may be customized)
    Short Name IISU Short display name for the store type
    Capability IISU Store type name orchestrator will register with. Check the box to allow entry of value
    Supports Add βœ… Checked Check the box. Indicates that the Store Type supports Management Add
    Supports Remove βœ… Checked Check the box. Indicates that the Store Type supports Management Remove
    Supports Discovery πŸ”² Unchecked Indicates that the Store Type supports Discovery
    Supports Reenrollment βœ… Checked Indicates that the Store Type supports Reenrollment
    Supports Create πŸ”² Unchecked Indicates that the Store Type supports store creation
    Needs Server βœ… Checked Determines if a target server name is required when creating store
    Blueprint Allowed πŸ”² Unchecked Determines if store type may be included in an Orchestrator blueprint
    Uses PowerShell πŸ”² Unchecked Determines if underlying implementation is PowerShell
    Requires Store Password πŸ”² Unchecked Enables users to optionally specify a store password when defining a Certificate Store.
    Supports Entry Password πŸ”² Unchecked Determines if an individual entry within a store can have a password.

    The Basic tab should look like this:

    IISU Basic Tab

    Advanced Tab

    Attribute Value Description
    Supports Custom Alias Forbidden Determines if an individual entry within a store can have a custom Alias.
    Private Key Handling Required This determines if Keyfactor can send the private key associated with a certificate to the store. Required because IIS certificates without private keys would be invalid.
    PFX Password Style Default 'Default' - PFX password is randomly generated, 'Custom' - PFX password may be specified when the enrollment job is created (Requires the Allow Custom Password application setting to be enabled.)

    The Advanced tab should look like this:

    IISU Advanced Tab

    Custom Fields Tab

    Custom fields operate at the certificate store level and are used to control how the orchestrator connects to the remote target server containing the certificate store to be managed. The following custom fields should be added to the store type:

    Name Display Name Description Type Default Value/Options Required
    spnwithport SPN With Port Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations. Bool false πŸ”² Unchecked
    WinRM Protocol WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication. MultipleChoice https,http βœ… Checked
    WinRM Port WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP. String 5986 βœ… Checked
    ServerUsername Server Username Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'. Secret πŸ”² Unchecked
    ServerPassword Server Password Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'. Secret πŸ”² Unchecked
    ServerUseSsl Use SSL Determine whether the server uses SSL or not (This field is automatically created) Bool true βœ… Checked

    The Custom Fields tab should look like this:

    IISU Custom Fields Tab

    Entry Parameters Tab

    Name Display Name Description Type Default Value Entry has a private key Adding an entry Removing an entry Reenrolling an entry
    Port Port String value specifying the IP port to bind the certificate to for the IIS site. Example: '443' for HTTPS. String 443 πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    IPAddress IP Address String value specifying the IP address to bind the certificate to for the IIS site. Example: '*' for all IP addresses or '192.168.1.1' for a specific IP address. String * πŸ”² Unchecked βœ… Checked βœ… Checked βœ… Checked
    HostName Host Name String value specifying the host name (host header) to bind the certificate to for the IIS site. Leave blank for all host names or enter a specific hostname such as 'www.example.com'. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    SiteName IIS Site Name String value specifying the name of the IIS web site to bind the certificate to. Example: 'Default Web Site' or any custom site name such as 'MyWebsite'. String Default Web Site πŸ”² Unchecked βœ… Checked βœ… Checked βœ… Checked
    SniFlag SSL Flags A 128-Bit Flag that determines what type of SSL settings you wish to use. The default is 0, meaning No SNI. For more information, check IIS documentation for the appropriate bit setting.) String 0 πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    Protocol Protocol Multiple choice value specifying the protocol to bind to. Example: 'https' for secure communication. MultipleChoice https πŸ”² Unchecked βœ… Checked βœ… Checked βœ… Checked
    ProviderName Crypto Provider Name Name of the Windows cryptographic provider to use during reenrollment jobs when generating and storing the private keys. If not specified, defaults to 'Microsoft Strong Cryptographic Provider'. This value would typically be specified when leveraging a Hardware Security Module (HSM). The specified cryptographic provider must be available on the target server being managed. The list of installed cryptographic providers can be obtained by running 'certutil -csplist' on the target Server. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    SAN SAN String value specifying the Subject Alternative Name (SAN) to be used when performing reenrollment jobs. Format as a list of <san_type>=<san_value> entries separated by ampersands; Example: 'dns=www.example.com&dns=www.example2.com' for multiple SANs. Can be made optional if RFC 2818 is disabled on the CA. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked βœ… Checked

    The Entry Parameters tab should look like this:

    IISU Entry Parameters Tab

WinSql (WinSql)
  • Create WinSql using kfutil:

    # WinSql
    kfutil store-types create WinSql
  • Create WinSql manually in the Command UI:

    Create WinSql manually in the Command UI

    Create a store type called WinSql with the attributes in the tables below:

    Basic Tab

    Attribute Value Description
    Name WinSql Display name for the store type (may be customized)
    Short Name WinSql Short display name for the store type
    Capability WinSql Store type name orchestrator will register with. Check the box to allow entry of value
    Supports Add βœ… Checked Check the box. Indicates that the Store Type supports Management Add
    Supports Remove βœ… Checked Check the box. Indicates that the Store Type supports Management Remove
    Supports Discovery πŸ”² Unchecked Indicates that the Store Type supports Discovery
    Supports Reenrollment πŸ”² Unchecked Indicates that the Store Type supports Reenrollment
    Supports Create πŸ”² Unchecked Indicates that the Store Type supports store creation
    Needs Server βœ… Checked Determines if a target server name is required when creating store
    Blueprint Allowed βœ… Checked Determines if store type may be included in an Orchestrator blueprint
    Uses PowerShell πŸ”² Unchecked Determines if underlying implementation is PowerShell
    Requires Store Password πŸ”² Unchecked Enables users to optionally specify a store password when defining a Certificate Store.
    Supports Entry Password πŸ”² Unchecked Determines if an individual entry within a store can have a password.

    The Basic tab should look like this:

    WinSql Basic Tab

    Advanced Tab

    Attribute Value Description
    Supports Custom Alias Forbidden Determines if an individual entry within a store can have a custom Alias.
    Private Key Handling Optional This determines if Keyfactor can send the private key associated with a certificate to the store. Required because IIS certificates without private keys would be invalid.
    PFX Password Style Default 'Default' - PFX password is randomly generated, 'Custom' - PFX password may be specified when the enrollment job is created (Requires the Allow Custom Password application setting to be enabled.)

    The Advanced tab should look like this:

    WinSql Advanced Tab

    Custom Fields Tab

    Custom fields operate at the certificate store level and are used to control how the orchestrator connects to the remote target server containing the certificate store to be managed. The following custom fields should be added to the store type:

    Name Display Name Description Type Default Value/Options Required
    spnwithport SPN With Port Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations. Bool false πŸ”² Unchecked
    WinRM Protocol WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication. MultipleChoice https,http βœ… Checked
    WinRM Port WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP. String 5986 βœ… Checked
    ServerUsername Server Username Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'. Secret πŸ”² Unchecked
    ServerPassword Server Password Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'. Secret πŸ”² Unchecked
    ServerUseSsl Use SSL Determine whether the server uses SSL or not (This field is automatically created) Bool true βœ… Checked
    RestartService Restart SQL Service After Cert Installed Boolean value (true or false) indicating whether to restart the SQL Server service after installing the certificate. Example: 'true' to enable service restart after installation. Bool false βœ… Checked

    The Custom Fields tab should look like this:

    WinSql Custom Fields Tab

    Entry Parameters Tab

    Name Display Name Description Type Default Value Entry has a private key Adding an entry Removing an entry Reenrolling an entry
    InstanceName Instance Name String value specifying the SQL Server instance name to bind the certificate to. Example: 'MSSQLServer' for the default instance or 'Instance1' for a named instance. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    ProviderName Crypto Provider Name Optional string value specifying the name of the Windows cryptographic provider to use during reenrollment jobs when generating and storing private keys. Example: 'Microsoft Strong Cryptographic Provider'. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked
    SAN SAN String value specifying the Subject Alternative Name (SAN) to be used when performing reenrollment jobs. Format as a list of <san_type>=<san_value> entries separated by ampersands; Example: 'dns=www.example.com&dns=www.example2.com' for multiple SANs. String πŸ”² Unchecked πŸ”² Unchecked πŸ”² Unchecked βœ… Checked

    The Entry Parameters tab should look like this:

    WinSql Entry Parameters Tab

Installation

  1. Download the latest Windows Certificate Universal Orchestrator extension from GitHub.

    Navigate to the Windows Certificate Universal Orchestrator extension GitHub version page. Refer to the compatibility matrix below to determine whether the net6.0 or net8.0 asset should be downloaded. Then, click the corresponding asset to download the zip archive.

    Universal Orchestrator Version Latest .NET version installed on the Universal Orchestrator server rollForward condition in Orchestrator.runtimeconfig.json iis-orchestrator .NET version to download
    Older than 11.0.0 net6.0
    Between 11.0.0 and 11.5.1 (inclusive) net6.0 net6.0
    Between 11.0.0 and 11.5.1 (inclusive) net8.0 Disable net6.0
    Between 11.0.0 and 11.5.1 (inclusive) net8.0 LatestMajor net8.0
    11.6 and newer net8.0 net8.0

    Unzip the archive containing extension assemblies to a known location.

    Note If you don't see an asset with a corresponding .NET version, you should always assume that it was compiled for net6.0.

  2. Locate the Universal Orchestrator extensions directory.

    • Default on Windows - C:\Program Files\Keyfactor\Keyfactor Orchestrator\extensions
    • Default on Linux - /opt/keyfactor/orchestrator/extensions
  3. Create a new directory for the Windows Certificate Universal Orchestrator extension inside the extensions directory.

    Create a new directory called iis-orchestrator.

    The directory name does not need to match any names used elsewhere; it just has to be unique within the extensions directory.

  4. Copy the contents of the downloaded and unzipped assemblies from step 2 to the iis-orchestrator directory.

  5. Restart the Universal Orchestrator service.

    Refer to Starting/Restarting the Universal Orchestrator service.

The above installation steps can be supplimented by the official Command documentation.

Defining Certificate Stores

The Windows Certificate Universal Orchestrator extension implements 3 Certificate Store Types, each of which implements different functionality. Refer to the individual instructions below for each Certificate Store Type that you deemed necessary for your use case from the installation section.

Windows Certificate (WinCert)
  • Manually with the Command UI

    Create Certificate Stores manually in the UI
    1. Navigate to the Certificate Stores page in Keyfactor Command.

      Log into Keyfactor Command, toggle the Locations dropdown, and click Certificate Stores.

    2. Add a Certificate Store.

      Click the Add button to add a new Certificate Store. Use the table below to populate the Attributes in the Add form.

      Attribute Description
      Category Select "Windows Certificate" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the certificate store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Windows certificate store path to manage. The store must exist in the Local Machine store on the target server, e.g., 'My' for the Personal Store or 'Root' for the Trusted Root Certification Authorities Store.
      Orchestrator Select an approved orchestrator capable of managing WinCert certificates. Specifically, one with the WinCert capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
  • Using kfutil

    Create Certificate Stores with kfutil
    1. Generate a CSV template for the WinCert certificate store

      kfutil stores import generate-template --store-type-name WinCert --outpath WinCert.csv
    2. Populate the generated CSV file

      Open the CSV file, and reference the table below to populate parameters for each Attribute.

      Attribute Description
      Category Select "Windows Certificate" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the certificate store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Windows certificate store path to manage. The store must exist in the Local Machine store on the target server, e.g., 'My' for the Personal Store or 'Root' for the Trusted Root Certification Authorities Store.
      Orchestrator Select an approved orchestrator capable of managing WinCert certificates. Specifically, one with the WinCert capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
    3. Import the CSV file to create the certificate stores

      kfutil stores import csv --store-type-name WinCert --file WinCert.csv

The content in this section can be supplimented by the official Command documentation.

IIS Bound Certificate (IISU)
  • Manually with the Command UI

    Create Certificate Stores manually in the UI
    1. Navigate to the Certificate Stores page in Keyfactor Command.

      Log into Keyfactor Command, toggle the Locations dropdown, and click Certificate Stores.

    2. Add a Certificate Store.

      Click the Add button to add a new Certificate Store. Use the table below to populate the Attributes in the Add form.

      Attribute Description
      Category Select "IIS Bound Certificate" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the IIS certificate store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Windows certificate store path to manage. Choose 'My' for the Personal store or 'WebHosting' for the Web Hosting store.
      Orchestrator Select an approved orchestrator capable of managing IISU certificates. Specifically, one with the IISU capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
  • Using kfutil

    Create Certificate Stores with kfutil
    1. Generate a CSV template for the IISU certificate store

      kfutil stores import generate-template --store-type-name IISU --outpath IISU.csv
    2. Populate the generated CSV file

      Open the CSV file, and reference the table below to populate parameters for each Attribute.

      Attribute Description
      Category Select "IIS Bound Certificate" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the IIS certificate store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Windows certificate store path to manage. Choose 'My' for the Personal store or 'WebHosting' for the Web Hosting store.
      Orchestrator Select an approved orchestrator capable of managing IISU certificates. Specifically, one with the IISU capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
    3. Import the CSV file to create the certificate stores

      kfutil stores import csv --store-type-name IISU --file IISU.csv

The content in this section can be supplimented by the official Command documentation.

WinSql (WinSql)
  • Manually with the Command UI

    Create Certificate Stores manually in the UI
    1. Navigate to the Certificate Stores page in Keyfactor Command.

      Log into Keyfactor Command, toggle the Locations dropdown, and click Certificate Stores.

    2. Add a Certificate Store.

      Click the Add button to add a new Certificate Store. Use the table below to populate the Attributes in the Add form.

      Attribute Description
      Category Select "WinSql" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the SQL Server Certificate Store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Fixed string value 'My' indicating the Personal store on the Local Machine. This denotes the Windows certificate store to be managed for SQL Server.
      Orchestrator Select an approved orchestrator capable of managing WinSql certificates. Specifically, one with the WinSql capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
      RestartService Boolean value (true or false) indicating whether to restart the SQL Server service after installing the certificate. Example: 'true' to enable service restart after installation.
  • Using kfutil

    Create Certificate Stores with kfutil
    1. Generate a CSV template for the WinSql certificate store

      kfutil stores import generate-template --store-type-name WinSql --outpath WinSql.csv
    2. Populate the generated CSV file

      Open the CSV file, and reference the table below to populate parameters for each Attribute.

      Attribute Description
      Category Select "WinSql" or the customized certificate store name from the previous step.
      Container Optional container to associate certificate store with.
      Client Machine Hostname of the Windows Server containing the SQL Server Certificate Store to be managed. If this value is a hostname, a WinRM session will be established using the credentials specified in the Server Username and Server Password fields. For more information, see Client Machine.
      Store Path Fixed string value 'My' indicating the Personal store on the Local Machine. This denotes the Windows certificate store to be managed for SQL Server.
      Orchestrator Select an approved orchestrator capable of managing WinSql certificates. Specifically, one with the WinSql capability.
      spnwithport Internally set the -IncludePortInSPN option when creating the remote PowerShell connection. Needed for some Kerberos configurations.
      WinRM Protocol Multiple choice value specifying the protocol (https or http) that the target server's WinRM listener is using. Example: 'https' to use secure communication.
      WinRM Port String value specifying the port number that the target server's WinRM listener is configured to use. Example: '5986' for HTTPS or '5985' for HTTP.
      ServerUsername Username used to log into the target server for establishing the WinRM session. Example: 'administrator' or 'domain\username'.
      ServerPassword Password corresponding to the Server Username used to log into the target server for establishing the WinRM session. Example: 'P@ssw0rd123'.
      ServerUseSsl Determine whether the server uses SSL or not (This field is automatically created)
      RestartService Boolean value (true or false) indicating whether to restart the SQL Server service after installing the certificate. Example: 'true' to enable service restart after installation.
    3. Import the CSV file to create the certificate stores

      kfutil stores import csv --store-type-name WinSql --file WinSql.csv

The content in this section can be supplimented by the official Command documentation.

Note Regarding Client Machine

If running as an agent (accessing stores on the server where the Universal Orchestrator Services is installed ONLY), the Client Machine can be entered, OR you can bypass a WinRM connection and access the local file system directly by adding "|LocalMachine" to the end of your value for Client Machine, for example "1.1.1.1|LocalMachine". In this instance the value to the left of the pipe (|) is ignored. It is important to make sure the values for Client Machine and Store Path together are unique for each certificate store created, as Keyfactor Command requires the Store Type you select, along with Client Machine, and Store Path together must be unique. To ensure this, it is good practice to put the full DNS or IP Address to the left of the | character when setting up a certificate store that will be accessed without a WinRM connection.

Here are the settings required for each Store Type previously configured.

License

Apache License 2.0, see LICENSE.

Related Integrations

See all Keyfactor Universal Orchestrator extensions.

About

The IIS Orchestrator treats the certificates bound (actively in use) on a Microsoft Internet Information Server (IIS) as a Keyfactor certificate store. Inventory, Management, and Reenrollment jobs are supported. The orchestrator replaces the IIS orchestrator that ships with Keyfactor Command (which did not support binding.)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published