KSC Open API
Kaspersky Security Center API description
binary CertUtils::EncryptPEM ( binary  pemCert,
wstring  pwchPassword 
)

Creates credential from PEM-form buffer and encrypts private key with password.

Parameters:
[in]pemCert(binary) Certificate in PEM format
[in]pwchPassword(wstring) Certificate password, maybe empty
Returns:
(KLPAR::MemoryChunkPtr) Certificate file chunk in PEM format