CreateSSLCertificateBinding Method (WMI MSReportServer_ConfigurationSetting)
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
Creates an SSL Certificate binding.
Public Sub CreateSSLCertificateBinding(ByVal Application As String, _ ByVal CertificateHash As String, ByVal IPAddress As String, _ ByVal Port As Int32, ByVal lcid As Int32, _ ByRef [Error] As String, ByRef HRESULT As Int32)
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.