Skip to content

Commit

Permalink
feat(24.04) add default-certs and bins to ca-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijie-yang committed Jul 3, 2024
1 parent f915a15 commit 0417cb0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion slices/ca-certificates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ essential:
slices:
data:
contents:
/etc/ca-certificates.conf: {text: FIXME, mutable: true}
/etc/ssl/certs/ca-certificates.crt: {text: FIXME, mutable: true}
/usr/share/ca-certificates/mozilla/: {until: mutate}
/usr/share/ca-certificates/mozilla/*: {until: mutate}
Expand All @@ -16,11 +15,26 @@ slices:
content.read(certs_dir + path) for path in content.list(certs_dir)
]
content.write("/etc/ssl/certs/ca-certificates.crt", "".join(certs))
default-certs:
essential:
- ca-certificates_data
contents:
/etc/ca-certificates.conf: {text: FIXME, mutable: true}
/usr/share/ca-certificates/mozilla/**:
mutate: |
certs_dir = "/usr/share/ca-certificates/mozilla/"
names = [
"mozilla/{}".format(name) for name in content.list(certs_dir)
]
content.write("/etc/ca-certificates.conf", "\n".join(names))
bins:
essential:
- openssl_bins
contents:
/usr/sbin/update-ca-certificates:

copyright:
contents:
/usr/share/doc/ca-certificates/copyright:

0 comments on commit 0417cb0

Please sign in to comment.