From b110ac2eccf156c11cbc16b50efec93e6ca434e5 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 17 Jul 2019 14:55:00 +0200 Subject: [PATCH] TT#62983 Provide full server ca certfile If a device needs the CA cert to bootstrap, then provide the full chain of certificates for proper validation. Change-Id: I62eb0adfa3fba8c558ac244f1cc10189de94ec64 --- lib/NGCP/Panel/Controller/Device.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Controller/Device.pm b/lib/NGCP/Panel/Controller/Device.pm index 1c3182a713..9f32c2756e 100644 --- a/lib/NGCP/Panel/Controller/Device.pm +++ b/lib/NGCP/Panel/Controller/Device.pm @@ -1542,7 +1542,7 @@ sub dev_field_bootstrap :Chained('/') :PathPart('device/autoprov/bootstrap') :Ar url => "$schema://$host:$config_port/device/autoprov/config/$id", baseurl => "$schema://$host:$config_port/device/autoprov/config/", caurl => "http://$host:$boot_port/device/autoprov/cacert", - ca => $c->model('CA')->get_provisioning_root_ca_cert($c), + ca => $c->model('CA')->get_provisioning_ca_cert($c), mac => $id, bootstrap => 1, },