-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Document use of ssl bindings, possibly include support for specifying them #221
Comments
https://github.com/lynx44/windows_ssl#bind_certificate ? windows_ssl_bind_certificate "bind the ssl cert" do
hash '991deaa340c14b45214927f58a8b7288d9ce6906'
port 443
ip_address '0.0.0.0'
app_guid '1A25F4DE-A3DE-FEA2-EAF0-023FA1AD324'
action :bind
end In https://github.com/lynx44/windows_ssl/blob/master/providers/bind_certificate.rb#L22 execute "install ssl certificate #{hash}" do
command "netsh http add sslcert ipport=#{ip_address}:#{port} certhash=#{hash} appid={#{app_guid}}"
only_if { unbound }
action :run
end |
@hh, this is interesting. On one hand being able to come into chef iis cookbook and easily build your config is desirable. On the otherhand, SSL certs aren't made by IIS (appcmd) and they aren't just used for IIS and website hosting. So although I agree there needs to be documentation on making an SSL certificate and then binding it to a site. Really the only thing I would consider IIS is binding it to the site. Although on the other hand in the iisconfig manager you can create an SSL certificate. I'll think about the certificates more when I have time to research chef cookbooks on supermarket |
From #226 |
+1 Would like to see an easy way to add the ssl cert with the cookbook. Currently all of our webservers offload the SSL cert to the F5 loadbalancer, however for testing VMs, we want them to have the cert locally so it doesn't require the LB. |
I've actually started using windows_certificate_binding though you have to currently write two resource (one with action :delete with a guard to not delete the desired one, and another with :create) : See chef-boneyard/windows#313 |
Thanks, I'm studying this before I try and implement it. When you say you need 2 resources, what is that for? |
|
@hh feel free to add this to the readme.md under advanced in a PR and i'll move it to master |
Here's a snippet I used to create a self signed certificate via powershell, that I could then bind, using the recipe provided by @hh
|
http://www.iis.net/learn/manage/configuring-security/how-to-set-up-ssl-on-iis#SSL
https://msdn.microsoft.com/en-us/library/ms186362.aspx
I couldn't find it in the cookbook or docs, but I was able to get it to work manually.
We can look at current bindings, and reuse the winrm or rdp cert:
We'll create a new ssl cert binding to that port:
Now it shows up, and works.
I think support for this should be built into the cookbook.
The text was updated successfully, but these errors were encountered: