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 committed Jan 19, 2023
1 parent 9d96218 commit 45f8565
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
23 changes: 23 additions & 0 deletions projects/curl.se/ca-certs/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
distributable: ~

versions:
# maybe base it off the URL?
- 1.0.0

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

build:
dependencies:
linux:
curl.se: '*'
script: |
cd "{{prefix}}"
mkdir -p ssl
curl -k https://curl.se/ca/cacert-2022-07-19.pem -o ssl/cert.pem
test:
dependencies:
curl.se: '*'
script: curl https://tea.xyz
9 changes: 6 additions & 3 deletions projects/openssl.org/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ provides:
- bin/openssl
- bin/c_rehash

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

build:
dependencies:
tea.xyz/gx/cc: c99
Expand All @@ -31,12 +35,11 @@ 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
# REMOVE AFTER BOOTSTRAP
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 45f8565

Please sign in to comment.