-
Notifications
You must be signed in to change notification settings - Fork 149
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
xWebSite: How to enable Central Certificate store and not to get an error that Certificate thumbprint is invalid #199
Comments
So forgive me for the simple question but do you not need a thumbprint since it is HTTPS The code will require a thumbprint which is why you're getting this error |
Hi James, The code is written in a way, that it does requires to have Thumbprint value for HTTPS and it can’t be a NULL. If I put $NULL as a value, it gives me an error, that Thumbprint value is null. So, code is not written to use a Central Certificate store. I put a fix in place, by adding extra check in the if statement. Starting with a line 1427 in the MSFT_xWebsite.psm1: SSL-related properties
Please feel free to correct me if I am wrong… |
nope that looks fine-ish to me |
I'd agree here. You need to specify a Thumbprint to use SSL. IIS will then look in the central store (defaults to using Certs:\LocalMachine\My if not otherwise specified) for a certificate with that thumbprint. So agree with @nzspambot - it all looks to be working correctly. You do need to create an SSL Certificate, add it to your LocalMachine\MY certificate store and then specify the Thumbprint of the cert as a parameter. |
PlagueHO. you missing a point of Central Certificate store... The idea is to avoid putting Thumbprint in the config and identify correct one using by the name of actual certificate. Check this website, section "File Naming Convention": T. |
@TomasKT - you are quite right! Sorry about that. I wasn't even aware this feature existed - that is actually really useful to know. 😄 I didn't read your title correctly. So this is a new feature/resource request. I think this would require more than just changes to xWebSite. I expect it would also require changes to other resources to configure the location of the CCS. |
Relabelled this as enhancement instead of a bug. As for @PlagueHO's comment about changing the location of the CCS, if that can nt be a property in this resource, then that should be submitted as a anther issue if that requires an entire new resource. |
Looks like wrapping the |
Hi Support,
I am getting this error:
Unable to validate BindingInfo: "The CertificateThumbprint property is required for bindings of type "https
".".
Using latest xWebAdministration package.
Values that I am passing:
@{
Protocol = "https"
IPAddress = "*"
Port = "443"
HostName = "superweb.com"
CertificateThumbprint = $null
SslFlags = "3"
}
The text was updated successfully, but these errors were encountered: