KSC Open API
Kaspersky Security Center API description
params ServerTransportSettings::GetCurrentConnectionSettingsEx ( wstring  szwCertType,
params  pSettings 
)

GetCurrentConnectionSettingsEx. Returns current connection settings.

Parameters:
szwCertTypeCertificate type (can be "CERT_TYPE_MOBILE", "CERT_TYPE_EMBEDDED")
pSettingsRequest settings
                "TRSP_SETTIGNS_WEB_SRV_LOCAL"            [paramBool], Web server local;
                "TRSP_SETTIGNS_WEB_SRV_HOST_ID"          [paramString], Web server host id;
            
Returns:
Returned data format:
                "TRSP_SETTINGS_FQDN"                [paramString], actual endpoint FQDN (from certificate)
                "TRSP_SETTINGS_PORT"                [paramInt], actual endpoint port
                "TRSP_SETTINGS_ISDEFCERTUSED"       [paramBool], is default certificate used ?
                "TRSP_SETTINGS_OPEN_PORT"           [paramBool], true if port should be opened, false otherwise.
                "CERT_PUB"                          [paramBinary], current certificate's public key
                "TRSP_RESERVE_CERT_PUB"             [paramBinary], optional, reserve certificate's public key
                "TRSP_RESERVE_CERT_ACTIVATION_DATE" [DATETIME_T], optional, reserve certificate's activation date