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 |
|||||
|
type |
string |
|||
format |
uuid |
||||
|
const |
generate_csr |
|||
|
const |
request |
|||
|
type |
object |
|||
properties |
|||||
|
enum |
charging_station_certificate, v2g_certificate, v2g20_certificate |
|||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
|||
|
type |
string |
|||
|
enum |
ECDSA_SHA256, ECDSA_SHA512, RSA_SHA256, RSA_SHA384 |
|||
allOf |
if |
properties |
|||
|
const |
v2g20_certificate |
|||
then |
properties |
||||
|
const |
ECDSA_SHA512 |
|||
Example:
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "generate_csr",
"type": "request",
"data": {
"certificate_type": "charging_station_certificate", # v2g_certificate | v2g20_certificate
"common_name": "9783161484100",
"organization_name": "EcoG",
"country_name": "DE",
"algorithm": "ECDSA_SHA256", # Optional (includes ECDSA_SHA512 for ISO 15118-20 SECC profile)
"evse_id": "DE*SEV*E123456789" # Optional
}
}
Notes:
Accepted
certificate_typevalues:charging_station_certificate,v2g_certificate,v2g20_certificate.certificate_type=v2g_certificatemaps to OCPPSignCertificate.certificateType=V2GCertificate.certificate_type=v2g20_certificatemaps to OCPPSignCertificate.certificateType=V2G20Certificate.certificate_type=v2g20_certificateis intended for ISO 15118-20 SECC CSR generation.When
certificate_type=v2g20_certificate, callers must setalgorithm=ECDSA_SHA512.
GenerateCsrResponse¶
Topic: cs/Josev. Used to respond to CSR request from Josev. |
|||
type |
object |
||
properties |
|||
|
type |
string |
|
format |
uuid |
||
|
const |
generate_csr |
|
|
const |
response |
|
|
type |
object |
|
properties |
|||
|
enum |
accepted, rejected |
|
|
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
}
}