KSC Open API
Kaspersky Security Center API description
params ServerTransportSettings::GetCurrentConnectionSettings ( wstring  szwCertType)

GetCurrentConnectionSettings. Returns current connection settings.

Parameters:
szwCertTypeCertificate type (can be "CERT_TYPE_MOBILE", "CERT_TYPE_EMBEDDED")
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