From 3912f76f59f11afd53df61aab40bd81f8190d3c7 Mon Sep 17 00:00:00 2001 From: Tatiana Leon Date: Tue, 28 Mar 2023 18:18:25 +0200 Subject: [PATCH] ccimx8m: ccmp1: cc6ul: cloudconnector: update store certificates in '/etc/ssl/certs' Cloud Connector configuration file sets: * 'edp12.devicecloud.com' as the URL to connect to (this end point uses client certificates) * '/mnt/data' as the directory to store downloaded certificates, now that this is also available in emmc platforms (see 62d937df42a82ee5f7a1f1521dbf730d46fc286f) This commit: * reverts a0842cbcfd7b92c47e292f8c33102a7266bde823 to keep 'edp12.devicecloud.com' URL that uses certificates for ccimx8m platforms. * reverts fd94f10c0b7cb61472e0958910b84ed176d40052 since now the cloud connector configuration file sets '/mnt/data' as the place to store downloaded certificates, so no need to modify it for ccmp1 platforms. * It also configures '/etc/ssl/certs' as the certificates directory for cc6ul devices. Although by default, these devices are connecting to 'remotemanager.digi.com' that not uses certificates, we prefer to use an existing directory in that setting. See commit 063a946e7c3a955ace6acd20e1ff3a6ecc5c73ff. Signed-off-by: Tatiana Leon --- .../recipes-digi/cloudconnector/cloudconnector_git.bb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/meta-digi-dey/recipes-digi/cloudconnector/cloudconnector_git.bb b/meta-digi-dey/recipes-digi/cloudconnector/cloudconnector_git.bb index 985db3b3b..13094edbc 100644 --- a/meta-digi-dey/recipes-digi/cloudconnector/cloudconnector_git.bb +++ b/meta-digi-dey/recipes-digi/cloudconnector/cloudconnector_git.bb @@ -41,14 +41,7 @@ do_install() { do_install:append:ccimx6ul() { sed -i "/url = \"edp12.devicecloud.com\"/c\url = \"remotemanager.digi.com\"" ${D}${sysconfdir}/cc.conf -} - -do_install:append:ccimx8m() { - sed -i "/url = \"edp12.devicecloud.com\"/c\url = \"remotemanager.digi.com\"" ${D}${sysconfdir}/cc.conf -} - -do_install:append:ccmp1() { - sed -i "/client_cert_path = \"\/etc\/ssl\/certs\/drm_cert.pem\"/c\client_cert_path = \"\/mnt\/data\/drm_cert.pem\"" ${D}${sysconfdir}/cc.conf + sed -i "/client_cert_path = \"\/mnt\/data\/drm_cert.pem\"/c\client_cert_path = \"\/etc\/ssl\/certs\/drm_cert.pem\"" ${D}${sysconfdir}/cc.conf } pkg_postinst_ontarget:${PN}() {