Skip to content

Commit

Permalink
Add ca_certificates package (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylewlacy authored May 31, 2024
1 parent f34b2f7 commit 8adb0ed
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projects/ca_certificates/brioche.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"dependencies": {}
}
30 changes: 30 additions & 0 deletions projects/ca_certificates/project.bri
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import * as std from "std";

export const project = {
name: "ca_certificates",
version: "2024-03-11",
};

export default (): std.Recipe<std.Directory> => {
const cacert = std.download({
url: `https://curl.se/ca/cacert-${project.version}.pem`,
hash: std.sha256Hash(
"1794c1d4f7055b7d02c2170337b61b48a2ef6c90d77e95444fd2596f4cac609f",
),
});

return std.setEnv(
std.directory({
etc: std.directory({
ssl: std.directory({
certs: std.directory({
"ca-bundle.crt": cacert,
}),
}),
}),
}),
{
SSL_CERT_FILE: { path: "etc/ssl/certs/ca-bundle.crt" },
},
);
};

0 comments on commit 8adb0ed

Please sign in to comment.