Automatically download certificate on Python device
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user