Discuss this help topic in SecureBlackbox Forum
Saves the certificate to the memory buffer in PFX format.
Declaration
Parameters
- Buffer - the buffer to which the certificate is saved.
- StartIndex - Index of the first byte in the Buffer from which to start saving.
- Size - the size of the buffer to which the data is saved. When the method returns, Size parameter contains the size of the data that were saved, or, if the buffer was too small, the size of the buffer enough to hold the data.
- Password - the password to encrypt the certificate.
- KeyEncryptionAlgorithm - the PBE (password-based) algorithm which should be used to encrypt private key. See values below. If this parameter is omitted the default algorithm is SB_ALGORITHM_PBE_SHA1_3DES.
- CertEncryptionAlgorithm - the PBE (password-based) algorithm which should be used to encrypt certificate. See values below. If this parameter is omitted the default algorithm is SB_ALGORITHM_PBE_SHA1_RC2_40.
Values:
Return value
0 on success.
PKCS12 error code otherwise.
Description
This method saves the certificate to the provided memory location of the given size. If the buffer is too small (or empty), Size parameter is set to the size which will be enough to hold the whole data. The certificate is saved in PFX format.
Discuss this help topic in SecureBlackbox Forum