Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows_certificate_binding does not bind ssl certificate to the default web site #614

Open
ngeegoh opened this issue Aug 3, 2019 · 1 comment

Comments

@ngeegoh
Copy link

ngeegoh commented Aug 3, 2019

Cookbook version

windows (5.3.1)

Chef-client version

Chef Workstation version: 0.5.1
Chef Infra Client version: 15.1.36
Chef InSpec version: 4.6.9
Test Kitchen version: 2.2.5
Foodcritic version: 16.1.1
Cookstyle version: 5.0.0
Chef Infra Client version: 15.1.36

Platform Details

Chef Solo in Windows 2016 Datacentre

Scenario:

I got this code in my recipe, when I ran it, it did not bind the certificate to the https in "Default Web Site" as expected (it did nothing, but it worked before for some reasons I am not sure). I suspect it might be the windows cookbook bug that causes this issue.

windows_certificate_binding "Bind IIS HTTPS Certificate" do
        action :create
        cert_name "<thumbprint string>"
        name_kind :hash
        address '0.0.0.0'
        port 443
    end

Expected Result:

I tried to remove and add different windows_certificate_binding options but none of them worked.
I can bind the SSL certificate to https manually and ensure the certificate is in an exportable stage.

Actual Result:

It output as success, but nothing actually happened

* windows_certificate_binding[Bind IIS HTTPS Certificate] action create (up to date)
@welcomebot
Copy link

Hey There
It looks like this is the first issue you've filed against the chef-cookbooks project. I'm here to offer you a bit of extra help to make sure we can quickly get back to you.
Make sure you've filled out all the fields in our issue template. Make sure you've provided us with the version of chef-client you're running, your operating system and the version of the cookbook. If you're not using the most up to date version of the cookbook then please make sure to update first. Lots of things change between versions even if you're issue isn't listed in the changelog. Finally please give us a detailed description of the issue you're having. The more we know about what you're trying to do, what actually happens, and how you can reproduce the problem, the better.

If you're looking for more immediate troubleshooting help make sure to check out #general on the Chef Community Slack. There's plenty of folks there willing to lend a helping hand. Thanks for the first issue. We hope we can get back to you soon with a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants