CreateSSLCertificateBinding Method (WMI MSReportServer_ConfigurationSetting)
Applies To: SQL Server 2016
Creates an SSL Certificate binding.
public void CreateSSLCertificateBinding(string application, string certificateHash, string IPAddress, int Port, int lcid, out string error, out int HRESULT);
The name of application that the certificate binding should be created for.
The hash for the certificate.
The IP address for the application.
The SSL port associated with the binding.
The locale to use for the error messages returned.
[out] The description of the errors that occurred.
[out] Value indicating whether the call succeeded or failed.
Returns an HRESULT indicating success or failure of the method call. A value of 0 indicates that the method call was successful; an error code indicates the call was not successful.
This method adds a binding to rsreportserver.config for the application. If a binding does not already exist in HTTP.SYS, it is created there.
Before creating the binding, the method call examines the Url Reservations for the specified application to determine if the SSL Certificate Binding is valid.
The following conditions are validated and can result in errors:
Certificate does not exist.
The IPAddress specified does not correspond to an IPAddress of this computer.
The IPAddress specified is a DHCP IPAddress (changes periodically) – use the Wildcard IP address instead (0.0.0.0).
IPAddress specified does not match the IP address of a URL reservations AND neither a wildcard or host name URL reservation exist.
A URL reservation that specifies a host name exists, but the host name does not match the certificate host name.