Open nsklikas opened 1 year ago
Thank you for reporting us your feedback!
The internal ticket has been created: https://warthogs.atlassian.net/browse/IAM-483.
This message was autogenerated
I added all the packages to run update-ca-certificates, on this branch: https://github.com/canonical/kratos-rock/blob/IAM-483-Enable-certificates-update/rockcraft.yaml
I got this error message: sed: can't read /etc/ca-certificates.conf: No such file or directory
I verified that the file isn't there. I guess this file gets created when a package manager triggers a script.
I'm not sure what's the best way to proceed. Seems like other charms that use ca-certificates don't use the bare build for ubuntu.
I tried it out a little and I have a couple of comments:
/etc/ca-certificates.conf
is created by a maintainer script in the package. Rockcraft installs the debian packages, but does not run the maintainer scripts. /usr/local/share/ca-certificates
, after you run update-ca-certificates
you will see that cert in /etc/ssl/certs
./usr/local/share/ca-certificates
are taken into account, all of the certs from the mozzila package are ignored because of the missing ca-certificates.conf
file.It is not clear how to move forward:
/usr/share/ca-certificates/mozilla/
to /usr/local/share/ca-certificates/
You can try to install the ca-certificates in the overlay-packages (@amandahla suggested me that approach and it worked for me).
Even though we add the
ca-certificates
package, we can't run theupdate-ca-certificates
script. Currently it fails becauserm
andmktemp
are not present in the bare image.