Automatically download certificate on Python device

This commit is contained in:
2024-07-03 22:19:56 +02:00
parent 9cba9c5f0a
commit 6ad50657a5
4 changed files with 50 additions and 2 deletions

View File

@ -160,6 +160,10 @@ pub async fn secure_server(energy_actor: EnergyActorAddr) -> anyhow::Result<()>
"/devices_api/mgmt/enrollment_status",
web::get().to(mgmt_controller::enrollment_status),
)
.route(
"/devices_api/mgmt/get_certificate",
web::get().to(mgmt_controller::get_certificate),
)
})
.bind_openssl(&AppConfig::get().listen_address, builder)?
.run()