KSC Open API
Kaspersky Security Center API description
binary CertUtils::MakePKCS12 ( binary  pCert,
binary  pPrivate,
wstring  wstrPrivatePassKey,
wstring  wstrFriendlyName,
wstring  wstrPassKey 
)

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

Parameters:
[in]pCert(binary) Certificate in PEM format
[in]pPrivate(binary) Certificate in PEM format
[in]wstrPrivatePassKey(wstring) Private certificate password, maybe empty
[in]wstrFriendlyName(wstring) Certificate's friendly name, maybe empty
[in]wstrPassKey(wstring) Password to encrypt private key with, maybe empty
Returns:
(KLPAR::MemoryChunkPtr) Certificate file chunk in PKCS#12 format