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

GetCustomSrvCertificateInfoEx. Returns information about custom certificate.

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:
If certificate present then params with the fields below will be returned:
                "CERT_USE"                          [paramBool], it indicates if custom certificate feature is enabled or disabled for this certificate type (szwCertType);
                "CERT_PUB"                          [paramBinary], 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;
                In case if custom certificate was not set before then empty params will be returned with no any fields;
                In case if custom certificate was set but disabled then params with ["CERT_USE"] field set to false will be returned.
            
See also: