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
changes/00/31800/1
Andreas Granig 7 years ago
parent 9a1254b44e
commit b110ac2ecc

@ -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,
},

Loading…
Cancel
Save