Skip to content
Documentation Menu

TC_A_09_CS — Update Charging Station Password for HTTP Basic Authentication - Accepted

TC_A_09_CS — Update Charging Station Password for HTTP Basic Authentication - Accepted

Source: OCPP 2.0.1 Part 6 — Test Cases (Core & Advanced Security, FINAL, 2023-06-30) — Functional block A. Security, page 15.

Identification

FieldValue
Test case nameUpdate Charging Station Password for HTTP Basic Authentication - Accepted
Test case IdTC_A_09_CS
Use case Id(s)A01
Requirement(s)A01.FR.01, A01.FR.11, A01.FR.12, B01.FR.01
System under testCharging Station
Functional blockA. Security

Description

This test case defines how to use the BasicAuthPassword, the password used to authenticate Charging Stations in security profile 1 (Basic Authentication) and security profile 2 (TLS with Basic Authentication)

Purpose

To verify if the Charging Station is able to accept and store and log the new BasicAuthPassword as described at the OCPP specification.

Prerequisite(s)

The charging station supports security profile 1 and/or 2

Before (Preparations)

Configuration State:

  • N/a

Memory State:

  • N/a

Reusable State(s):

  • N/a

Main (Test scenario)

Charging StationCSMS
2. The Charging Station responds with a SetVariablesResponse1. The OCTT sends a SetVariablesRequest with setVariableData[1]:; - variable.name = "BasicAuthPassword"; - component.name = "SecurityCtrlr"; - attributeValue = "<NewPassword>"
3. The ChargingStation sends a HTTP upgrade request with an Authorization header, containing a username/password combination (with the new BasicAuthPassword).; Note(s):; - The Authorization header is formatted as follows: AUTHORIZATION: Basic <Base64 encoded(<Configured ChargingStationId>:<NEW BasicAuthPassword>)>4. The OCTT validates the username/password combination AND upgrades the connection to a (secured) WebSocket connection.
5. The Charging Station sends a BootNotificationRequest6. The OCTT responds with a BootNotificationResponse
7. The Charging Station notifies the OCTT about the current state of all connectors.8. The OCTT responds accordingly.
Note(s):; - Steps 5, 6, 7, and 8 are only required when status in Step 2 is RebootRequired

Tool validations

Step 2:

Message: SetVariablesResponse

  • status must be Accepted or RebootRequired

Post scenario validations

  • N/a