4.6 InstallCertificate
The InstallCertificate message is used by the central system to install a new certificate on the charge point. This is part of the certificate management process, ensuring secure communication between the charge point and the central system.
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
GetInstallStatus | This function retrieves the current status of the certificate installation process. | void | INSTALLCERT_STATUS_T |
Example:
char* messageID = GetInstallCertificateMessageID();
INSTALLCERT_STATUS_T installStatus = GetInstallStatus();
if (messageID == NULL || strlen(messageID) == 0)
{
LogDebug("APP_LOG", "GetInstalledCertificateIds: Missing message ID\n");
break;
}
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
SaveCentralSystemRootCertificate | This function saves the manufacturer root certificate to a secure storage location or file system, where it can be accessed later for verification, installation, or use in cryptographic operations. | void | static void |
Example:
else if (rxInstallCertificate.certificateType == INSTALL_CERTIFICATE_USE_CSMS_ROOT_CERTIFICATE)
{
SaveCentralSystemRootCertificate();
}
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
|
SendInstallCertificateResponse |
This function sends the response to the requesting entity for the install certificate operation. |
char *resUUID |
INSTALLCERTERROR_T |
Example:
else if((INSTALL_UPDATE_STATE_T)responsecode == INSTALL_CERTIFICATE_CERTIFICATE_MISSING_FIELD)
{
SendInstallCertificateResponse(messageID);
LogDebug("APP_LOG", "Certificate has missing fields\n");
}
