Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

Commit

Permalink
+ca-certs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhheider authored and mxcl committed Jan 19, 2023
1 parent 5409781 commit cdcd586
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
22 changes: 22 additions & 0 deletions projects/curl.se/ca-certs/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
distributable: ~

versions:
- 2022.07.19

runtime:
env:
SSL_CERT_FILE: ${{prefix}}/ssl/cert.pem

build:
dependencies:
curl.se: '*'
script: |
cd "{{prefix}}"
mkdir -p ssl
URL_VER=$(echo {{version.raw}} | tr -- . -)
curl -k https://curl.se/ca/cacert-$URL_VER.pem -o ssl/cert.pem
test:
dependencies:
curl.se: '*'
script: curl https://tea.xyz
10 changes: 3 additions & 7 deletions projects/openssl.org/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ provides:
- bin/openssl
- bin/c_rehash

dependencies:
curl.se/ca-certs: '*'

build:
dependencies:
tea.xyz/gx/cc: c99
tea.xyz/gx/make: '*'
perl.org: 5
curl.se: '*' # to download ca-certs on linux
git-scm.org: 2 # to apply our patch
script: |
git apply props/x509_def.c.diff
Expand All @@ -31,12 +33,6 @@ build:
make --jobs {{ hw.concurrency }}
make install_sw # `_sw` avoids installing docs
#FIXME needs to be a curl.se/ca-certs that gets updates
#FIXME on macOS use /etc/ssl/cert.pem (I couldn't make this work)
#FIXME or on macOS get certs from the keychain
cd "{{prefix}}"
mkdir -p ssl
curl -k https://curl.se/ca/cacert-2022-07-19.pem -o ssl/cert.pem
env:
darwin/aarch64: {ARCH: 'darwin64-arm64-cc'}
darwin/x86-64: {ARCH: 'darwin64-x86_64-cc'}
Expand Down

0 comments on commit cdcd586

Please sign in to comment.