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.

experimentalversion 1.0.0AsyncAPI 3.0.0 content type application/jsonlicense Apache-2.0EVerestOCPP

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

send the client publishes, EVerest consumes (4) receive EVerest publishes, the client consumes (4)

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

send Command that indicates if the given CA certificate type is installed
Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/is_ca_certificate_installed
Reply
Sent to $message.header#/replyTo as 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

object
  • 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
  • payloadstring requiredCaCertificateType

    Enum specifies the type of a CA certificate

    enumV2GMOCSMSMF

Example

Ask if certificated of type CSMS is installed
{
  "headers": {
    "replyTo": "reply/to/address"
  },
  "payload": "CSMS"
}

send_request_get_leaf_certificate_info

send Command to get the paths of the certificate and the respective key
Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/get_leaf_certificate_info
Reply
Sent to $message.header#/replyTo as 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

object

Example

Get information for CSMS type certificate
{
  "headers": {
    "replyTo": "reply/to/address"
  },
  "payload": {
    "certificate_type": "CSMS",
    "encoding": "PEM",
    "include_ocsp": false
  }
}

send_request_get_verify_location

send 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)
Topic
everest_api/1/evse_security_consumer/{module_id}/m2e/get_verify_location
Reply
Sent to $message.header#/replyTo as 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

object
  • 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
  • payloadstring requiredCaCertificateType

    Enum specifies the type of a CA certificate

    enumV2GMOCSMSMF

Example

Get file path for V2G CA root directory
{
  "headers": {
    "replyTo": "reply/to/address"
  },
  "payload": "V2G"
}

send_communication_check

send 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

CommunicationCheck
true

EVerest to client

receive_reply_is_ca_certificate_installed

receive Reply to is ca certificate installed request
Topic
Dynamic: the replyTo address 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

boolean

True if CA certificate is installed, else false

Example

Example 1
true

receive_reply_get_leaf_certificate_info

receive Reply to get leaf certificate info request
Topic
Dynamic: the replyTo address 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

Definition of GetCertificateInfoResult

Example

Reply to get information request
{
  "status": "Accepted",
  "info": {
    "key": "/etc/everest/certs/client/csms.key",
    "certificate_count": 1
  }
}

receive_reply_get_verify_location

receive Reply to get verify location request
Topic
Dynamic: the replyTo address 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

string

Path of the CA bundle file or CA directory, as plain text

Example

Return the CA bundle file or directory
"/path/to/ca/certificates"

receive_heartbeat

receive 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

integer HeartBeatId

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

Example

Heartbeat
42

Messages

MessageSummaryUsed by
send_request_is_ca_certificate_installed
Command that indicates if the given CA certificate type is installed

Command that indicates if the given CA certificate type is installed

send_request_is_ca_certificate_installed
receive_reply_is_ca_certificate_installed
Reply to is ca certificate installed request

Reply to is ca certificate installed

receive_reply_is_ca_certificate_installed
send_request_get_leaf_certificate_info
Command to get the paths of the certificate and the respective key

Command to get the paths of the certificate and the respective key

send_request_get_leaf_certificate_info
receive_reply_get_leaf_certificate_info
Reply to get leaf certificate info request

Reply to get leaf certificate info

receive_reply_get_leaf_certificate_info
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)

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)

send_request_get_verify_location
receive_reply_get_verify_location
Reply to get verify location request

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.

receive_reply_get_verify_location
receive_heartbeat
Receive heartbeat

Heartbeat produced by EVerest as configured via cfg_heartbeat_interval_ms in the EVerest configuration

receive_heartbeat
send_communication_check
Send communication check

Signal to EVerest that communication is good or check shall be stopped

send_communication_check

Schemas

CaCertificateType string
string

Enum specifies the type of a CA certificate

enumV2GMOCSMSMF
LeafCertificateType string
string

Enum specifies the type of a leaf certificate

enumCSMSV2GMFMO
EncodingFormat string
string

Enum specifies the encoding of certificates or keys

enumDERPEM
GetLeafCertificateInfoRequest object
object

Additional properties allowed.

  • certificate_typestring requiredLeafCertificateType

    Enum specifies the type of a leaf certificate

    enumCSMSV2GMFMO
  • encodingstring requiredEncodingFormat

    Enum specifies the encoding of certificates or keys

    enumDERPEM
  • include_ocspboolean required

    Specifies whether per-certificate OCSP data is also requested

GetCertificateInfoStatus string
string

Status indicates the result of the attempt to retrieve a certificate

enumAcceptedRejectedNotFoundNotFoundValidPrivateKeyNotFound
HashAlgorithm string
string

Enum specifies a hash algorithm

enumSHA256SHA384SHA512
CertificateHashData object
object

Type specifies the hash data of a certificate

Additional properties allowed.

  • hash_algorithmstring requiredHashAlgorithm

    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
object

OCSP data related to requested the certificates

Additional properties allowed.

CertificateInfo object
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

GetCertificateInfoResult object
object

Response to the command get_leaf_certificate_info

Additional properties allowed.

HeartBeatId integer
integer

64bit unsigned integer. The id of every heartbeat increases by 1 and overflows when the maximum representable value is reached

CommunicationCheck boolean
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.