Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6976

IIS : protocol should be set to https when creating a binding on port 443

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: IIS 4.4.0
    • Component/s: iis, windows
    • Labels:
    • Environment:

      Vagrant (VirtualBox) VM

    • Template:
      MODULES Bug Template
    • Acceptance Criteria:
      Hide

      Functional Review (manual test, see "How We Test" confluence doc)

      Show
      Functional Review (manual test, see "How We Test" confluence doc)
    • Epic Link:
    • Team:
      Windows
    • Story Points:
      1
    • Sprint:
      Windows 2018-08-29
    • Method Found:
      Customer Feedback
    • QA Risk Assessment:
      Needs Assessment

      Description

      Module Version: 4.3.1
      Puppet Version: 5.3.3
      OS Name/Version: Windows Server 2012 Core

      When binding to port 443, the IIS module appears to first create the site using the http protocol. Then, when the site tries to start, an error is thrown, because IIS doesn't allow a site to start using http protocol on port 443. You have to use https when binding to port 443.

      After some investigation, I realized that setting the protocol to https is a matter of passing theĀ -Ssl flag to the New-WebSite cmdlet. Therefore I modified the _newwebsite.ps1.erb template to pass the Ssl flag. It's a crude measure, but it fixed my issue. File attached. See line 18.

      A better solution would be to detect when the port is set to 443, and set theĀ -Ssl flag appropriately in that circumstance.

      Desired Behavior: I am expecting that when I specify the protocol to be https, the site gets created with that protocol, instead of http.

      Actual Behavior: The site gets created with the http protocol.

        Attachments

        1. _newwebsite.ps1.erb
          0.9 kB
        2. output.txt
          0.5 kB
        3. test.pp
          0.8 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              joshuakeel Joshua Keel
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support