KSC Open API
Kaspersky Security Center API description
binary CertUtils::ConvertPKCS12ToPEM ( binary  cert,
wstring  pwchPassword = nullptr 
)

Converts PKCS#12 certificate to PEM.

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