evse_security_consumer_API¶
Warning
Experimental API since 2026.10.0. This API is exempt from the EVerest stability guarantees and the deprecation period. Its channels, operations and message payloads may change or be removed in any release without notice until it is promoted to stable. See the policy on experimental components and the experimental feature index.
EVerest API definition for evse_security consumer
API for EVerest API clients that use the EvseSecurity module. Experimental: this API is exempt from the EVerest stability guarantees and the deprecation period; channels, operations and message payloads may change without further notice until it is promoted to stable.
Specification: evse_security_consumer_API.yaml · pionix:de:everest:evse_security_consumer_API
Servers¶
default mqtt
default local MQTT
- Host
localhost:1883- Topic prefix
everest_api/1/evse_security_consumer/{module_id}{module_id}The ID of the module as defined in the EVerest config file.
Operations¶
Client to EVerest¶
send_request_is_ca_certificate_installed¶
- Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/is_ca_certificate_installed- Reply
- Sent to
$message.header#/replyToas receive_reply_is_ca_certificate_installed.
Command that indicates if the given CA certificate type is installed
Message Command that indicates if the given CA certificate type is installed application/json
Message send_request_is_ca_certificate_installed
Command that indicates if the given CA certificate type is installed
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
Example
{
"headers": {
"replyTo": "reply/to/address"
},
"payload": "CSMS"
}
send_request_get_leaf_certificate_info¶
- Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/get_leaf_certificate_info- Reply
- Sent to
$message.header#/replyToas receive_reply_get_leaf_certificate_info.
Command to get the paths of the certificate and the respective key
Message Command to get the paths of the certificate and the respective key application/json
Message send_request_get_leaf_certificate_info
Command to get the paths of the certificate and the respective key
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
-
payloadobject requiredGetLeafCertificateInfoRequest
Example
{
"headers": {
"replyTo": "reply/to/address"
},
"payload": {
"certificate_type": "CSMS",
"encoding": "PEM",
"include_ocsp": false
}
}
send_request_get_verify_location¶
- Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/get_verify_location- Reply
- Sent to
$message.header#/replyToas receive_reply_get_verify_location.
Command to get the path of the CA certificates for verification: the bundle file if the CA store is a file, otherwise the directory (c_rehash is invoked on it)
Message Command to get the path of the CA certificates for verification: the bundle file if the CA store is a file, otherwise the directory (c_rehash is invoked on it) application/json
Message send_request_get_verify_location
Command to get the path of the CA certificates for verification: the bundle file if the CA store is a file, otherwise the directory (c_rehash is invoked on it)
Payload
-
headersobject
-
replyTostring
Address to send the response to. Omit it to discard the response. An invalid address, see the EVerest API explanation, rejects the request.
min length 1
-
Example
{
"headers": {
"replyTo": "reply/to/address"
},
"payload": "V2G"
}
send_communication_check¶
- Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/communication_check
Message Send communication check application/json
Message send_communication_check
Signal to EVerest that communication is good or check shall be stopped
Payload
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.
Example
true
EVerest to client¶
receive_reply_is_ca_certificate_installed¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_is_ca_certificate_installed.
Message Reply to is ca certificate installed request application/json
Message receive_reply_is_ca_certificate_installed
Reply to is ca certificate installed
Payload
True if CA certificate is installed, else false
Example
true
receive_reply_get_leaf_certificate_info¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_get_leaf_certificate_info.
Message Reply to get leaf certificate info request application/json
Message receive_reply_get_leaf_certificate_info
Reply to get leaf certificate info
Payload
object GetCertificateInfoResult
Response to the command get_leaf_certificate_info
Example
{
"status": "Accepted",
"info": {
"key": "/etc/everest/certs/client/csms.key",
"certificate_count": 1
}
}
receive_reply_get_verify_location¶
- Topic
- Dynamic: the
replyToaddress from the request's headers. Answers send_request_get_verify_location.
Message Reply to get verify location request text/plain
Message receive_reply_get_verify_location
Reply to get verify location. The payload is the path as plain text, not a JSON string. It is empty if no CA certificate is found.
Payload
Path of the CA bundle file or CA directory, as plain text
Example
"/path/to/ca/certificates"
receive_heartbeat¶
- Topic
everest_api/1/evse_security_consumer/{module_id}/e2m/heartbeat
Message Receive heartbeat application/json
Message receive_heartbeat
Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration
Payload
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
Example
42
Messages¶
Schemas¶
CaCertificateType string¶
Enum specifies the type of a CA certificate
V2GMOCSMSMFLeafCertificateType string¶
Enum specifies the type of a leaf certificate
CSMSV2GMFMOEncodingFormat string¶
Enum specifies the encoding of certificates or keys
DERPEMGetLeafCertificateInfoRequest object¶
Additional properties allowed.
-
Enum specifies the type of a leaf certificate
enumCSMSV2GMFMO -
include_ocspboolean required
Specifies whether per-certificate OCSP data is also requested
GetCertificateInfoStatus string¶
Status indicates the result of the attempt to retrieve a certificate
AcceptedRejectedNotFoundNotFoundValidPrivateKeyNotFoundHashAlgorithm string¶
Enum specifies a hash algorithm
SHA256SHA384SHA512CertificateHashData object¶
Type specifies the hash data of a certificate
Additional properties allowed.
-
Algorithm used for the hashes provided
enumSHA256SHA384SHA512 -
issuer_name_hashstring required
The hash of the issuer's distinguished name (DN), calculated over the DER encoding of the issuer's name field.
max length 128 -
issuer_key_hashstring required
The hash of the DER encoded public key: the value (excluding tag and length) of the subject public key field
max length 128 -
serial_numberstring required
The string representation of the hexadecimal value of the serial number without the prefix "0x" and without leading zeroes.
max length 40
CertificateOCSP object¶
OCSP data related to requested the certificates
Additional properties allowed.
-
hashobject requiredCertificateHashData
Hash of certificate linked to the provided data
-
ocsp_pathstring
OCSP path of the file containing the data
CertificateInfo object¶
Type that specifies the paths of a certificate and the respective private key
Additional properties allowed.
-
keystring required
The path of the PEM or DER encoded private key
-
certificate_rootstring
The PEM of the root certificate that issued this leaf
-
certificatestring
The path of the PEM or DER encoded certificate chain
-
certificate_singlestring
The path of the PEM or DER encoded single certificate
-
certificate_countinteger required
The count of certificates in the chain
-
passwordstring
Specifies the password for the private key if encrypted
-
ocsparray<object>
Certificate related OCSP data, if requested
-
itemsobject CertificateOCSP
OCSP data related to requested the certificates
-
GetCertificateInfoResult object¶
Response to the command get_leaf_certificate_info
Additional properties allowed.
-
The status of the requested command
enumAcceptedRejectedNotFoundNotFoundValidPrivateKeyNotFound
HeartBeatId integer¶
64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached
CommunicationCheck boolean¶
Send true at least every cfg_communication_check_to_s seconds to signal that the client is alive, otherwise EVerest raises a CommunicationFault, which the next message clears. Send false to stop the check until the module restarts.