4.9 SignCertificate
The SignCertificate message is used by the central system to request the charge point to sign a certificate with its private key. This is typically part of a process to establish secure communication between the charge point and the central system.
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
SendSignCertificateRequest | This function sends a request to a signing service to sign a certificate. | void | SIGN_REQ_STATUS_T |
Example:
case 'C': /* Sign Certificate */
{
SendSignCertificateRequest();
}
break;
|
API Syntax |
Description |
Input Params |
Return Value |
|---|---|---|---|
GenerateCSR | Generates CSR using the private key | Char pointer of privateKeyFile , char pointer of JsonFile, char pointer of PEM File | Char pointer of CSR |
Example:
char *csr = GenerateCSR(privateKeyFile, jsonFile, outputPemFile);
if (csr != NULL)
{
strncpy(signCertificateRequest, csr, sizeof(signCertificateRequest) - 1);
signCertificateRequest[sizeof(signCertificateRequest) - 1] = '\0'; // Null-terminate
