Generate CSR

Topic: josev/cs

This message is intended to request the OEM to generate a key pair by the TPM and the corresponding certificate signing request CSR to perform a certificate installation.

GenerateCsrRequest

Topic: josev/cs. Used to request a CSR from the OEM.

type

object

properties

  • id

type

string

format

uuid

  • name

const

generate_csr

  • type

const

request

  • data

type

object

properties

  • certificate_type

enum

charging_station_certificate, v2g_certificate

  • common_name

type

string

  • organization_name

type

string

  • country_name

type

string

  • algorithm

enum

ECDSA_SHA256, RSA_SHA256, RSA_SHA384

Example:

{
 "id": "123e4567-e89b-12d3-a456-426614174000",
 "name": "generate_csr",
 "type": "request",
 "data": {
     "certificate_type": "charging_station_certificate", # v2g_certificate
     "common_name": "9783161484100",
     "organization_name": "EcoG",
     "country_name": "DE",
     "algorithm": "ECDSA_SHA256",  # Optional
 }

}


GenerateCsrResponse

Topic: cs/Josev. Used to respond to CSR request from Josev.

type

object

properties

  • id

type

string

format

uuid

  • name

const

generate_csr

  • type

const

response

  • data

type

object

properties

  • status

enum

accepted, rejected

  • csr

type

string

Topic: cs/josev

Example:

{
    "id": "57828133-8cfe-477d-b829-0b60aff90c2a",
    "name": "generate_csr",
    "type": "response",
    "data": {
             "status": "accepted", # rejected
             "csr": "-----BEGIN CERTIFICATE REQUEST...", # Optional
            }
}