KSC Open API  13.0
Kaspersky Security Center API description
CertPoolCtrl::SetCertificate ( int  nVServerId,
int  nFunction,
params  pCertData 
)

Sets certificate of a given function for a given virtual server.

Parameters:
nVServerId[in] (int) Virtual server id (-1 for current, 0 for main server)
nFunction[in] (int) Certificate function (see "KLCERTP::CertificateFunction enum values")
pCertData[in] Params with certificate data (see Common format for certificate params). If pCertData is empty or NULL, then certificate will be deleted.