KSC Open API
Kaspersky Security Center API description
MdmCertCtrlApi::SetPkiAgentSettings ( params  pSettings)

Set PKI agent settings.

Parameters:
pSettings- PKI agent settings "Enabled" - Enabled flag "HostName" - Identifier of host with PKI agent (see parameter KLHST_WKS_HOSTNAME in List of host attributes) "PkiUserLogonName" - Username with rights to issue certificates. The logon name format - domain and a user account (<DOMAIN - NetBIOS domain name><UserName - User account name>) "PkiUserPassword" - User password (use DataProtectionApi::ProtectUtf16StringGlobally) "UserTemplateName" - User template used when generating a certificate